asData property
AsyncData<ValueT> ?
get
asData
Upcast AsyncValue into an AsyncData, or return null if the AsyncValue is an AsyncLoading/AsyncError.
Note that an AsyncData may still be in loading/error state, such as during a pull-to-refresh.
Implementation
AsyncData<ValueT>? get asData {
return map(data: (d) => d, error: (e) => null, loading: (l) => null);
}