RouteWatcher class
Methods
addHead (Widget screen , {BaseContainerOptions ? options = BaseContainerOptions.defaultSetup , dynamic arguments })
→ void
Creates a new head node by clearing all lists and replacing it
with the newly created Screens
addListener (VoidCallback listener )
→ void
Register a closure to be called when the object changes.
inherited
addReplacement (Widget screen , {BaseContainerOptions ? options = BaseContainerOptions.defaultSetup , dynamic arguments })
→ void
addTail (Widget screen , {BaseContainerOptions ? options = BaseContainerOptions.defaultSetup , dynamic arguments })
→ void
Creates a new tail home
addToStack (Widget screen , {BaseContainerOptions options = BaseContainerOptions.defaultSetup , dynamic arguments })
→ void
Adds a new screen to the screenViewHistory stack.
also accepts optional routeArguments
after which it performs a deepClean on the navigation stack
to keep it tidy and free of redundant screen additions
addWithFallback (Widget screen , Widget fallBackScreen , {BaseContainerOptions ? options = BaseContainerOptions.defaultSetup , BaseContainerOptions ? fallOptions = BaseContainerOptions.defaultSetup , dynamic arguments })
→ void
creates a sequence where a fallback Screen is added to the viewHistory
addWithPurge (Widget screen , Widget purgeTail , {BaseContainerOptions ? options = BaseContainerOptions.defaultSetup , dynamic arguments })
→ void
Adds a new screen with a purge
similar to replaceUntil
It removes the screens upto a particular specified purgeTail
dispose ()
→ void
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
emptyStack ()
→ void
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners ()
→ void
Call all the registered listeners.
inherited
previousScreen ()
→ void
access the last screen that was viewed.
it pops the currentScreen and sets the preceding screen to current
removeFromStack ()
→ void
removeListener (VoidCallback listener )
→ void
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
toString ()
→ String
A string representation of this object.
override