LiteScopeState<W extends LiteScope<W, S>, S extends LiteScopeState<W, S>> class abstract base LiteScope

The state implementation for LiteScope.

Extends LiteScopeCoreState.

Inheritance

Constructors

LiteScopeState()

Properties

context → BuildContext
The location in the tree where this widget builds.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
isInitialized → bool
Whether the scope initialization is fully completed.
no setteroverride
mounted → bool
Whether this State object is currently in a tree.
no setterinherited
params → W
The parameters defined in the associated scope widget.
no setteroverride
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
widget → Never
Not the widget of this state, and there is none to hand back.
no setterinherited

Methods

activate() → void
Called when this object is reinserted into the tree after having been removed via deactivate.
inherited
build(BuildContext context) → Widget
Describes the part of the user interface represented by this widget.
override
close() → Future<void>
Closes the scope gracefully.
override
deactivate() → void
Called when this object is removed from the tree.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
didChangeDependencies() → void
Called when a dependency of this State object changes.
inherited
didUpdateWidget(covariant _LiteScopeCoreWidget<W, _LiteScopeElement<W, S>, S> oldWidget) → void
Called whenever the widget configuration changes.
inherited
dispose() → void
Sealed on purpose: put the teardown in onUnmount and disposeStateAsync.
inherited
disposeStateAsync() → FutureOr<void>
Disposes of the scope asynchronously.
override
initState() → void
Called when this object is inserted into the tree.
inherited
initStateAsync() → FutureOr<void>
Initializes the scope asynchronously.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyDependents() → void
Rebuilds the descendants subscribed to a value that changed.
override
onInitialized() → void
Called after the state has been successfully initialized.
override
onUnmount() → void
Lets go of whatever cannot wait for disposeStateAsync.
inherited
reassemble() → void
Called whenever the application is reassembled during debugging, for example during hot reload.
inherited
setState(VoidCallback fn) → void
Notify the framework that the internal state of this object has changed.
inherited
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
toStringShort() → String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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