StateSetter class

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

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
rebuild() → void
Allow for a more accurate description
refresh() → void
Allows external classes to 'refresh' or 'rebuild' the widget tree.
setState(VoidCallback fn) → void
Provide the setState() function to external actors
stateOf<T extends StatefulWidget>() StateMVC<StatefulWidget>?
Retrieve the State object by its StatefulWidget.Returns null if not found
toString() String
A string representation of this object.
inherited

Operators

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