popAndPush<T> static method
Implementation
static Future<T?> popAndPush<T>(BuildContext context, Widget page) {
pop(context);
return Navigator.of(context).push(
new CupertinoPageRoute(builder: (context) => page),
);
}
static Future<T?> popAndPush<T>(BuildContext context, Widget page) {
pop(context);
return Navigator.of(context).push(
new CupertinoPageRoute(builder: (context) => page),
);
}