inConnectionState method

AsyncSnapshot<T> inConnectionState(
  1. ConnectionState connectionState
)

Returns a copy of the current AsyncSnapshot with the given connectionState.

Implementation

AsyncSnapshot<T> inConnectionState(final ConnectionState connectionState) =>
    AsyncSnapshot._(
      connectionState: connectionState,
      data: data,
      error: error,
      stackTrace: stackTrace,
    );