readState method
Produces one declared snapshot.
Implementation
FutureOr<Map<String, Object?>> readState(String stateId) {
var entry = _states[stateId];
if (entry == null) {
throw ArgumentError(
'panel $id has no state "$stateId". Declared: '
'${_states.keys.toList()}',
);
}
return entry.$2();
}