errorOrNull property

E? errorOrNull

Returns the error if isOErr is true, otherwise returns null

Implementation

E? get errorOrNull => isErr ? _error : null;