removeAnimation method

JsonMap removeAnimation(
  1. String name
)

Remove animation with name.

Implementation

JsonMap removeAnimation(String name) {
  final newJson = json;
  final animations = newJson['animations'] as JsonMap;
  animations.remove(name);

  return newJson;
}