discontinuedPackage esotericsoftware_spine_flutter has been discontinued and replaced by spine_flutter.

fromAsset static method

Future<Atlas> fromAsset(
  1. String atlasFileName, {
  2. AssetBundle? bundle,
})

Implementation

static Future<Atlas> fromAsset(String atlasFileName, {AssetBundle? bundle}) async {
  bundle ??= rootBundle;
  return _load(atlasFileName, (file) async => (await bundle!.load(file)).buffer.asUint8List());
}