fromAtlas method

  1. @Deprecated('Use [atlasFromAssets] or [atlasFromStorage] instead')
Future<TexturePackerAtlas> fromAtlas(
  1. String assetsPath, {
  2. bool fromStorage = false,
  3. Images? images,
})

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

Implementation

@Deprecated('Use [atlasFromAssets] or [atlasFromStorage] instead')
Future<TexturePackerAtlas> fromAtlas(
  String assetsPath, {
  bool fromStorage = false,
  Images? images,
}) async =>
    TexturePackerAtlas.load(
      assetsPath,
      fromStorage: fromStorage,
      images: images,
    );