DartBoardState class

getState() itself generates the State from the object if it doesn't exist. When reducing a feature, this fallback creates the initial state, and ensures getState() never returns null for a registered state.

This can all be seen in the DartBoardState

Constructors

DartBoardState({required Map<Type, Map<String, dynamic>> data, required Map<Type, StateFactory> factories})
Constructor, takes the data and the current factories

Properties

data Map<Type, Map<String, dynamic>>
We track data for the extensions Type => Instance => Data
final
factories Map<Type, StateFactory>
These are the factories we use to make states lazily
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getState<T>({String instanceId = ""}) → T
Gets a state object, or builds it if it doesn't exist
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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