fromFile static method

Future<SkeletonDrawable> fromFile(
  1. String atlasFile,
  2. String skeletonFile
)

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);
}