open method Null safety
- XFile object
override
open opens the given XFile and returns a list of supported
and importable identifier String for the given object.
Implementation
@override
FutureOr<List<String>> open(XFile object) async {
_archive = await XZipDecoder.decodeXFile(object);
_dotDirectory = <String, ArchiveFile>{
for (final rawFile in _archive!.files)
if (!rawFile.name.startsWith('__MACOSX') &&
rawFile.name.endsWith("json"))
_dotPath(rawFile.name): rawFile
};
return _dotDirectory!.keys.toList();
}