VoidState class

A special type of state that holds no value but still triggers rebuilds.

Useful for imperative widget refreshes or stateless actions.

Constructors

VoidState.new()
Creates a new void state.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
uniqueKey UniqueKey
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
on(Widget build()) StateBuilder
Binds this state to a widget builder that runs when refreshed.
refresh() → void
Triggers a rebuild for widgets associated with this state.
toString() String
A string representation of this object.
inherited

Operators

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