StateSetter class

Allows you to call 'setState' from the 'current' the State object.

Mixed in types
Implementers

Constructors

StateSetter()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
states Set<StateMVC<StatefulWidget>>
Return a 'copy' of the Set of State objects.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners() → void
For those accustom to the 'Provider' approach.
ofState<T extends State<StatefulWidget>>() → T?
Retrieve the State object by type Returns null if not found
inherited
pushState(StateMVC<StatefulWidget>? state) bool
Push the StateMVC object to a Set of such objects Internal use only: This connects the Controller to this View!
inherited
rebuild() → void
Allow for a more accurate description
refresh() → void
Allows external classes to 'refresh' or 'rebuild' the widget tree.
removeState(StateMVC<StatefulWidget>? state) bool
Remove the specified StateMVC object to a Set of such objects Internal use only: This disconnects the Controller to this View!
inherited
setState(VoidCallback fn) → void
Provide the setState() function to external actors
toString() String
A string representation of this object.
inherited

Operators

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