Inheritance
Mixed in types
Properties
currentException
↔ dynamic
The latest exception to have been thrown by handleAction
.
Useful for when wanting to customise a page based on an error.
getter/setter pair
hasException
→ bool
Whether the current page has an exception or not
no setter
hashCode
→ int
The hash code for this object.
no setter inherited
hasListeners
→ bool
Whether any listeners are currently registered.
no setter inherited
hasRendered
↔ bool
getter/setter pair
isBusy
↔ bool
Checks if your widget is currently busy.
This is triggered automatically by any call to handleAction
getter/setter pair
renderTimestamp
→ int
When in epochSeconds the page was rendered.
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
scaffoldKey
→ GlobalKey <ScaffoldState >
A default GlobalKey<ScaffoldState>
which can be passed to your widgets to perform generic actions
final
Methods
addListener (VoidCallback listener )
→ void
Register a closure to be called when the object changes.
inherited
beforeFirstRender ()
→ void
inherited
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
forceRebuild ()
→ void
Force a rebuild of the current page.
handleAction (Future <void > function (), {dynamic onError (dynamic error )?, String message = '' , bool skipBusyState = false })
→ Future <void >
Perform a future action, catching any exceptions which may occur.
This also sets a isBusy
flag while the action is being performed.
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners ()
→ void
Call all the registered listeners.
inherited
onAppExit ()
→ bool
inherited
onDetached ()
→ void
inherited
onFirstRender ()
→ void
Called when a page is first rendered.
This is skipped on rebuilds and will only be called once be page.
override
onPause ()
→ void
inherited
onPlatformBrightnessChanged ()
→ void
inherited
onResume ()
→ void
inherited
onViewPop ()
→ void
inherited
onViewPushed ()
→ void
inherited
removeListener (VoidCallback listener )
→ void
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
showAlertDialog (Widget widget , {bool barrierDismissible = true })
→ Future <void >
Show any widget as an alert dialog.
This is a helper, and any customisation of the barrier should mean making your own.
toString ()
→ String
A string representation of this object.
inherited
unfocusKeyboards ()
→ void
Unfocuses the current focus node, if available