fromFile static method
Constructs a new skeleton drawable from the atlasFile
and skeletonFile
.
Throws an exception in case the data could not be loaded.
Implementation
static Future<SkeletonDrawable> fromFile(String atlasFile, String skeletonFile) async {
var atlas = await Atlas.fromFile(atlasFile);
var skeletonData = await SkeletonData.fromFile(atlas, skeletonFile);
return SkeletonDrawable(atlas, skeletonData, true);
}