AsyncSnapshot<T>.withData constructor

const AsyncSnapshot<T>.withData(
  1. ConnectionState state,
  2. 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, null);