push static method
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));
}