pushReplacement<T> method

Future<T?> pushReplacement<T>(
  1. Widget widget
)

Implementation

Future<T?> pushReplacement<T>(Widget widget) {
  return Navigator.pushReplacement(
      context, MaterialPageRoute(builder: (context) => widget));
}