readState method

FutureOr<Map<String, Object?>> readState(
  1. String stateId
)

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();
}