fromAsset static method
Loads an Atlas from the file atlasFileName in the root bundle or the optionally provided bundle.
Throws an Exception in case the atlas could not be loaded.
Implementation
static Future<Atlas> fromAsset(String atlasFileName, {AssetBundle? bundle}) async {
bundle ??= rootBundle;
return _load(atlasFileName, (file) async => (await bundle!.load(file)).buffer.asUint8List());
}