TilelAnimation.fromMap constructor

TilelAnimation.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory TilelAnimation.fromMap(Map<String, dynamic> map) {
  return TilelAnimation(
    stepTime: map['stepTime'],
    frames: map['frames'] != null
        ? (map['frames'] as List).map((e) {
            return TileSprite.fromMap(e);
          }).toList()
        : [],
  );
}