atlasFromAssets method
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);