Converted JS onFileLoaded to Pure Dart _onFileLoaded