AsyncSnapshotWithProgress<T, ProgressType extends Object>.withData constructor

const AsyncSnapshotWithProgress<T, ProgressType extends Object>.withData(
  1. ConnectionState state,
  2. T data
)

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

Implementation

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