afterDisconnected method

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

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<T> afterDisconnected(AsyncSnapshot<T> current) =>
    current.inState(ConnectionState.none);