get<T> method
Gets the current value according to the tags in the animation list.
tag
: Animation tag.
defaultValue
: The initial value if there is no value.
Implementation
T get<T>(String tag, T defaultValue) {
assert(tag.isNotEmpty, "The tag is empty.");
final value = _animation[tag].value as T?;
return value ?? defaultValue;
}