animateTag method
void
animateTag(})
Triggers the animation from the AnimateFrom widget by tag.
Implementation
void animateTag(
Object targetTag, {
Duration duration = const Duration(milliseconds: 1000),
Curve curve = Curves.easeInOut,
}) {
final key = _generatedKeys[targetTag];
if (key == null) {
throw FlutterError('No key found for the tag: $targetTag');
}
animate(key, duration: duration, curve: curve);
}