RootStateElement class

The root StateElement in the state tree. You can subclass to create your own custom state object.

Inheritance
Implementers

Constructors

RootStateElement()

Properties

converter StateElement Function(dynamic value, StateElement parent)
read / write, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
notifications Stream<StateElementNotification>
Returns a stream that can be subscribed to that receives StateElementNotifications upon changes
read-only, inherited
notifyParent bool
read / write, inherited
parent StateElement
final, inherited
removedFromState bool
Whether a state element has been removed from the state tree
read-only, inherited
rootElement RootStateElement
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
typeSafety TypeSafety
read / write, inherited
typing StateValueTyping
read / write, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
notifyChange() → void
inherited
notifyRemovedFromState() → void
should be called after a state element is no longer part of the state. This will cause your app to throw an error if you accidentally try to access or modify an element that's no longer in state.
inherited
subscribe(void callback(StateElementNotification notification)) StreamSubscription<StateElementNotification>
Subscripes to notifications and calls the callback upon an event will be depricated. Use notifications instead.
inherited
toPrimitive() → dynamic
Should be overriden if you need to convert the state to JSON. Attempts to convert a state element to primitive values before converting to JSON
inherited
toString() String
A string representation of this object. [...]
inherited
unmount() → void

Operators

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