fromAsset static method
Implementation
static Future<SkeletonData> fromAsset(Atlas atlas, String skeletonFile, {AssetBundle? bundle}) async {
bundle ??= rootBundle;
if (skeletonFile.endsWith(".json")) {
return fromJson(atlas, await bundle.loadString(skeletonFile));
} else {
return fromBinary(atlas, (await bundle.load(skeletonFile)).buffer.asUint8List());
}
}