push static method

Future push(
  1. Widget child, {
  2. NavigateAnimType animationType = NavigateAnimType.leftToRight,
})

Pushes a new route onto the stack with an animation.

Implementation

static Future<dynamic> push(Widget child, {NavigateAnimType animationType = NavigateAnimType.leftToRight}) {
  return navigatorKey.currentState!.push(_pageRouteBuilder(child, animationType: animationType));
}