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
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