atlasFromAssets method

Future<TexturePackerAtlas> atlasFromAssets(
  1. String assetsPath, {
  2. Images? images,
})

Loads the specified pack file from assets Uses the parent directory of the pack file to find the page images.

Implementation

Future<TexturePackerAtlas> atlasFromAssets(
  String assetsPath, {
  Images? images,
}) async =>
    TexturePackerAtlas.load(assetsPath, images: images);