StructuredState<TState, TEvent> class

Structured state management pattern (Bloc-like but simpler) Provides opinionated structure for state management

Constructors

StructuredState({required TState state, TEvent? lastEvent, DateTime? timestamp, List<TEvent>? eventHistory})

Properties

eventHistory List<TEvent>
final
hashCode int
The hash code for this object.
no setterinherited
lastEvent → TEvent?
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state → TState
final
timestamp DateTime
final

Methods

copyWith({TState? state, TEvent? lastEvent, DateTime? timestamp, List<TEvent>? eventHistory}) StructuredState<TState, TEvent>
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