NavigatorControl class

Controller for NavigatorStack

Inheritance
Available Extensions

Constructors

Default constructor

Properties

hashCode int
The hash code for this object.
no setteroverride
isInitialized bool
Return 'true' if init function was called before.
no setterinherited
isNavigatorAvailable bool
Check if navigator is set during subscribe (State init) phase.
no setter
Data for menu item. Mostly used in combination with NavigatorStackControl
getter/setter pair
onSelectionChanged ValueCallback<bool>?
Notifies about selection changes.
getter/setter pair
preferSoftDispose bool
requestDispose will execute softDispose. Useful for items in list and objects store in ControlFactory. Final dispose must be handled manually.
getter/setter pairinherited
preventDispose bool
requestDispose do nothing if set. Final dispose must be handled manually.
getter/setter pairinherited
preventMultiInit bool
Prevents multiple initialization and onInit will be called just once.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selected bool
Data for menu item. Returns if this controller is selected. Mostly used in combination with NavigatorStackControl
getter/setter pair

Methods

dispose() → void
Used to clear and dispose object. After this method call is object typically unusable and ready for GC. Can be called multiple times!
inherited
init(Map args) → void
Init is typically called right after constructor by framework. args - Arguments passed from parent or through Factory. Set preventMultiInit to enable multi init / re-init
inherited
invalidate() → void
Invalidates Control and sets isInitialized to false.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onInit(Map args) → void
Is typically called once and shortly after constructor. In most of times Widget or State isn't ready yet. preventMultiInit is enabled by default and prevents multiple calls of this function. args input arguments passed from parent or Factory.
inherited
popScope() Future<bool>
Helper function for WillPopScope. Returns negation of navigateBack as Future.
register(dynamic object) → void
Used to register interface/handler/notifier etc. Can be called multiple times with different objects!
override
reload() Future<void>
Reload model and data.
inherited
requestDispose([dynamic parent]) → void
Executes dispose based on preventDispose and preferSoftDispose settings. parent - actual object that requesting dispose.
inherited
softDispose() → void
Just soft dispose - stop loading / subscriptions etc. For example called when List item hides and is recycled. Also useful when Control is used with multiple Widgets to prevent fatal dispose.
inherited
toString() String
A string representation of this object.
inherited

Operators

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