getAnimationModel method

AnimationModel? getAnimationModel(
  1. String id
)

Implementation

AnimationModel? getAnimationModel(String id) {
  if (animations == null) return null;
  var models = animations!.where((model) => model.id == id);
  return (models.isNotEmpty) ? models.first : null;
}