inState method

  1. @override
AsyncSnapshotWithProgress<T, ProgressType> inState(
  1. ConnectionState state
)
override

Returns a snapshot like this one, but in the specified state.

The data, error, and stackTrace fields persist unmodified, even if the new state is ConnectionState.none.

Implementation

@override
AsyncSnapshotWithProgress<T, ProgressType> inState(ConnectionState state) =>
    AsyncSnapshotWithProgress<T, ProgressType>._(
      state,
      data,
      error,
      stackTrace,
      progress,
    );