loadState method
Load state for Aggregate with given id
.
Implementation
FutureOr<TState> loadState(TId id, [TValue? value]) async {
return _states == null
? newStateInstance(value)
: await _states!.load(StreamName.fromId(TAggregate, id));
}