NavigatorUtils class



hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
toString() String
A string representation of this object.


operator ==(Object other) bool
The equality operator.

Static Methods

canPop(BuildContext context) bool
getCurrentPage(BuildContext context) Widget
getPreviousPage(BuildContext context) Widget?
handleBackPressed(BuildContext context) Future<bool>
mayBePop(BuildContext context, {dynamic result}) → void
pop(BuildContext context, {dynamic result}) → void
push<T>(BuildContext context, Widget child, {PageState? pageState, bool fullscreenDialog = false, bool maintainState = true, TransitionType transitionType = TransitionType.none, RouteTransitionsBuilder? transition}) Future<T?>
pushDialog<T>(BuildContext context, Widget child, {bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings}) Future<T?>
pushModalBottomSheet<T>(BuildContext context, Widget child, {Color? backgroundColor, double? elevation, ShapeBorder? shape, Clip? clipBehavior, BoxConstraints? constraints, Color? barrierColor, bool isScrollControlled = false, bool useRootNavigator = false, bool isDismissible = true, bool enableDrag = true, bool? showDragHandle, bool useSafeArea = false, RouteSettings? routeSettings, AnimationController? transitionAnimationController, Offset? anchorPoint}) Future<T?>
setResult(BuildContext context, dynamic result) → dynamic