value property

T? get value

The cached value when resolved; null otherwise.

Implementation

T? get value => _state == AsyncSlotState.resolved ? _value : null;