Adding method docs

This commit is contained in:
Erick Zanardo
2019-03-07 19:26:57 -03:00
parent 916bbcd19e
commit 910d923bd3

View File

@ -106,6 +106,9 @@ class Animation {
/// Automatically creates an Animation Object using animation data provided by the json file
/// provided by Aseprite
///
/// [imagePath]: Source of the spritesheet animation
/// [dataPath]: Animation's exported data in json format
static Future<Animation> fromAsepriteData(String imagePath, String dataPath) async {
String content = await rootBundle.loadString(dataPath);
Map<String, dynamic> json = jsonDecode(content);