YAnimatedSwitcher function

Widget YAnimatedSwitcher({
  1. required Widget child,
  2. int duration = 300,
})

Implementation

Widget YAnimatedSwitcher({required Widget child, int duration = 300}) {
  return AnimatedSwitcher(duration: Duration(milliseconds: duration), child: child);
}