withLoader static method

Future<TextureAtlas> withLoader(
  1. TextureAtlasLoader textureAtlasLoader, [
  2. TextureAtlasFormat textureAtlasFormat = TextureAtlasFormat.JSONARRAY
])

Implementation

static Future<TextureAtlas> withLoader(TextureAtlasLoader textureAtlasLoader,
        [TextureAtlasFormat textureAtlasFormat =
            TextureAtlasFormat.JSONARRAY]) =>
    textureAtlasFormat.load(textureAtlasLoader);