pushAndReplace<T extends Object?, TO extends Object?> static method

Future pushAndReplace<T extends Object?, TO extends Object?>(
  1. Widget child, {
  2. NavigateAnimType animationType = NavigateAnimType.leftToRight,
})

Implementation

static Future<dynamic> pushAndReplace<T extends Object?, TO extends Object?>(
    Widget child, {NavigateAnimType animationType = NavigateAnimType.leftToRight}) {
  return navigatorKey.currentState!.pushReplacement(pageRouteBuilder(child, animationType: animationType));
}