SuraPageNavigator class

Less boilerplate MaterialPageRoute builder

Constructors

SuraPageNavigator()

Properties

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

Methods

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

Operators

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

Static Methods

pop<T>(BuildContext context, [T? result]) → void
popAll(BuildContext context) Future
Pop everything until the first route
push<T>(BuildContext context, Widget page, {bool fullscreenDialog = false, RouteSettings? settings, String? name}) Future
short handed push navigator name parameter can be use instead of settings if you only need to provider name
pushAndRemove(BuildContext context, Widget page, {bool fullscreenDialog = false, RouteSettings? settings, String? name, bool condition = false}) Future
short handed push and remove navigator
pushReplacement(BuildContext context, Widget page, {bool fullscreenDialog = false, RouteSettings? settings, String? name}) Future
short handed push replacement navigator