didUpdateWidget method
Called when the widget configuration changes.
Return a Cmd to schedule side effects caused by the configuration update.
Implementation
@override
Cmd? didUpdateWidget(T oldWidget) {
super.didUpdateWidget(oldWidget);
if (_shouldAnimate(oldWidget)) {
_updateTweens();
return _controller.forward(from: 0.0);
}
return null;
}