pushReplacementNoTransition<T extends Object?, TO extends Object?> method

  1. @optionalTypeArgs
Future<T?> pushReplacementNoTransition<T extends Object?, TO extends Object?>(
  1. Widget page
)

Usually used with a SlidingPanel

Do that:

Navigator.pushReplacementOpaque(
 NoTransitionPageRoute<T>(child: page),
);

Implementation

@optionalTypeArgs
Future<T?> pushReplacementNoTransition<T extends Object?, TO extends Object?>(
  Widget page,
) {
  return pushReplacement<T, TO>(NoTransitionPageRoute<T>(child: page));
}