AsyncValue<T>.error constructor

const AsyncValue<T>.error(
  1. Object? error, [
  2. StackTrace? stackTrace,
  3. int? retryCount
])

Implementation

const AsyncValue.error(this.error, [this.stackTrace, this.retryCount])
    : state = AsyncState.error,
      data = null;