AsyncState<T>.loading constructor

const AsyncState<T>.loading({
  1. T? data,
  2. bool stale = false,
})

A load is in flight, optionally over existing data (which may be stale).

Implementation

const AsyncState.loading({T? data, bool stale = false})
  : this._(LoadStatus.loading, data, null, stale);