state property

  1. @override
S get state
override

Returns the current state.

Implementation

@override
S get state {
  if (isUpdating) {
    throw StateError(
      'You may not call `Store.state` while updating. The update function '
      'has already received the state as an argument. Pass it down the '
      'call chain instead of reading a possibly outdated version from the '
      'store.',
    );
  }
  return delegate.state;
}