AsyncSnapshot<T>.withData constructor

AsyncSnapshot<T>.withData({
  1. required ConnectionState connectionState,
  2. required T data,
})

Implementation

factory AsyncSnapshot.withData({
  required final ConnectionState connectionState,
  required final T data,
}) =>
    AsyncSnapshot._(connectionState: connectionState, data: data);