get method

Animation? get(
  1. String key
)

Returns an Animation registered by the user in AnimationDefinition.getDefinition() function.

Implementation

Animation? get(String key) {
  assert(
    _controller != null,
    '${this} _controller not initialized, did you forget to call resolveDefinition()?',
  );

  if (!_sequence.containsKey(key)) return null;
  return _sequence[key]!.animation;
}