getOrNull property

RIO<R, A?> getOrNull

Succeed with the value of this ZIO if it succeeds, or succeed with null if it fails.

Implementation

RIO<R, A?> get getOrNull => matchSync((e) => null, identity);