next method
Define the next widget
in the chain. The wait
parameter specifies for
how long it should be displayed.
Implementation
AnimChain next({
required Widget widget,
Duration wait = const Duration(),
}) {
widgets.add(widget);
durations.add(wait);
return this;
}