routeReplace<T extends Object?> function

Future<T?>? routeReplace<T extends Object?>(
  1. Widget widget
)

Implementation

Future<T?>? routeReplace<T extends Object?>(Widget widget) {
  Route<T> route = new CupertinoPageRoute(
    builder: (BuildContext context) => widget,
    settings: new RouteSettings(
      name: widget.toStringShort(),
//      isInitialRoute: false,
    ),
  );
  return navGK.currentState?.pushReplacement(route);
}