AsyncData<T> constructor

const AsyncData<T>(
  1. T value
)

Creates an AsyncValue with a data.

Implementation

const AsyncData(T value)
    : this._(
        value,
        isLoading: false,
        error: null,
        stackTrace: null,
      );