ScreenController class base

Constructors

ScreenController(Screen<Object?>? superScreen, ScreenState<Screen<Object?>, ScreenController>? superState)

Properties

hashCode int
The hash code for this object.
no setterinherited
isReady bool
true once initController has finished without throwing.
no setter
ready Future<void>
Completes when initController finishes (or errors).
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
superScreen Screen<Object?>?
The screen this controller is bound to. Mutable so the controller cache can rebind it to a new screen instance when a screen with the same key is recreated.
getter/setter pair
superState ScreenState<Screen<Object?>, ScreenController>?
The state this controller is bound to. Mutable for the same reason as superScreen.
getter/setter pair

Methods

dispose() → void
Override to release any resources held by this controller. Called when the controller is evicted from the cache (or immediately when controllerTimeout: Duration.zero).
initController() Future<void>
Called once when the controller is first created. Override to perform async setup. The returned future is awaited internally so ready resolves at the right moment.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
runInit() Future<void>
Runs initController and completes ready. Called once by the state when the controller is created — do not call this manually.
toString() String
A string representation of this object.
inherited

Operators

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