AsyncSnapshot<T>.withData constructor

const AsyncSnapshot<T>.withData(ConnectionState state, T data)

Creates an AsyncSnapshot in the specified state and with the specified data.

Implementation

const AsyncSnapshot.withData(ConnectionState state, T data) : this._(state, data, null);