toRemove static method
Future
toRemove(
- Widget page, {
- NavType? type,
- Widget? childCurrent,
- BuildContext? ctx,
- bool inheritTheme = false,
- Curve curve = Curves.linear,
- Alignment? alignment,
- Duration duration = const Duration(milliseconds: 300),
- Duration reverseDuration = const Duration(milliseconds: 300),
- bool fullscreenDialog = false,
- bool opaque = false,
Grock.toRemove(
HomeScreen(),
type: NavType.fade,
curve: Curves.easeInOut,
duration: Duration(milliseconds: 600),
);
Implementation
static Future toRemove(
Widget page, {
NavType? type,
Widget? childCurrent,
BuildContext? ctx,
bool inheritTheme = false,
Curve curve = Curves.linear,
Alignment? alignment,
Duration duration = const Duration(milliseconds: 300),
Duration reverseDuration = const Duration(milliseconds: 300),
bool fullscreenDialog = false,
bool opaque = false,
}) {
log("Navigation toRemove $page", name: "Grock");
return GrockNavigationService.toRemove(page,
type: type,
childCurrent: childCurrent,
ctx: ctx,
inheritTheme: inheritTheme,
curve: curve,
alignment: alignment,
duration: duration,
reverseDuration: reverseDuration,
fullscreenDialog: fullscreenDialog,
opaque: opaque)
.catchError((err) {
log("$err", name: "Grock.to($page) error!", error: err);
});
}