NomoNavigator class

Inheritance
Implemented types

Constructors

NomoNavigator({Key? key, required Widget child, required NomoRouterDelegate delegate, PageTransition defaultModalTransistion = const PageFadeTransition(), PageTransition defaultTransistion = const PageFadeThroughTransition(), Duration defaultTransitionDuration = const Duration(milliseconds: 240), Duration defaultModalTransitionDuration = const Duration(milliseconds: 200)})
const

Properties

child Widget
The widget below this widget in the tree.
finalinherited
configuration RouterConfigurationNomo
no setteroverride
current RouteInfo
no setteroverride
defaultModalTransistion PageTransition
final
defaultModalTransitionDuration Duration
final
defaultTransistion PageTransition
final
defaultTransitionDuration Duration
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() InheritedElement
Inflates this configuration to a concrete instance.
inherited
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pop<T>([T? result]) bool
override
popRoot<T>([T? result]) bool
override
popUntil(bool predicate(NomoPage)) → void
override
popUntilAndPush<T>(AppRoute route, bool predicate(NomoPage route)) Future<T>
override
push<T>(AppRoute route) Future<T>
override
pushModal<T>({required Widget modal, PageTransition transition = const PageFadeTransition(), bool useRootNavigator = true}) Future<T?>
override
pushNamed<T>(String routeName, {Object? arguments, JsonMap? urlArguments}) Future<T>
override
replace<T>(AppRoute route) Future<T>
override
replaceAll<T>(AppRoute route) Future<T>
override
replaceNamed<T>(String routeName, {Object? arguments, JsonMap? urlArguments}) Future<T>
override
showModal<T>({required WidgetBuilder builder, required BuildContext context, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint, TraversalEdgeBehavior? traversalEdgeBehavior}) Future<T?>
override
showModalWithKey<T>({required WidgetBuilder builder, bool barrierDismissible = true, Color? barrierColor = Colors.black54, String? barrierLabel, bool useSafeArea = true, bool useRootNavigator = true, RouteSettings? routeSettings, Offset? anchorPoint, TraversalEdgeBehavior? traversalEdgeBehavior}) Future<T?>
override
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited
updateShouldNotify(covariant NomoNavigator oldWidget) bool
Whether the framework should notify widgets that inherit from this widget.
override

Operators

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

Static Properties

fromKey NomoNavigatorState
no setter
maybeFromKey NomoNavigatorState?
no setter

Static Methods

maybeOf(BuildContext context) NomoNavigator?
of(BuildContext context) NomoNavigator