valueOrNull property

T? get valueOrNull

Unwraps and yields the domain value payload directly if the execution succeeded; otherwise, returns null.

Implementation

T? get valueOrNull =>
    isSuccess ? (this as _SuccessResult<T>).success.value : null;