afterDisconnected method

  1. @override
AsyncSnapshot<S> afterDisconnected(
  1. AsyncSnapshot<S> current
)
override

Returns an updated version of the current summary reflecting that we are no longer connected to a stream.

The default implementation returns current as is.

Implementation

@override
AsyncSnapshot<S> afterDisconnected(AsyncSnapshot<S> current) =>
    current.inState(ConnectionState.none);