MessageStateHelper mixin
Superclass Constraints
Mixin Applications
Properties
hashCode
→ int
The hash code for this object.
no setter inherited
hasListeners
→ bool
Whether any listeners are currently registered.
no setter inherited
hasMessage
→ bool
Returns the message status of the ViewModel
no setter
modelMessage
→ String ?
Returns the message status of the ViewModel
no setter
runtimeType
→ Type
A representation of the runtime type of the object.
no setter inherited
Methods
addListener (VoidCallback listener )
→ void
Register a closure to be called when the object changes.
inherited
clearMessages ()
→ void
dispose ()
→ void
Discards any resources used by the object. After this is called, the
object is not in a usable state and should be discarded (calls to
addListener will throw after the object is disposed).
inherited
hasMessageForKey (Object key )
→ bool
Returns a boolean that indicates if the ViewModel has an message for the key
message (Object object )
→ String ?
Returns the message for an object if it exists. Returns null if not present
noSuchMethod (Invocation invocation )
→ dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notifyListeners ()
→ void
Call all the registered listeners.
inherited
removeListener (VoidCallback listener )
→ void
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
setMessage (String ? message )
→ void
Sets the message for the ViewModel
setMessageForObject (Object object , String ? value )
→ void
Sets the message for the object equal to the value passed in and notifies Listeners
If you're using a primitive type the value SHOULD NOT BE CHANGED, since Hashcode uses == value
toString ()
→ String
A string representation of this object.
inherited