value property

T? value

Attempts to synchronously.

On error, this will rethrow the error. If loading, will return null. Otherwise will return the data.

Implementation

T? get value {
  return _map(
    data: (d) => d.value,
    // ignore: only_throw_errors
    error: (e) => throw e.error,
    loading: (l) => null,
  );
}