pushReplacementNoTransition<T extends Object?, TO extends Object?> method
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));
}