NullResultExtensions<T, E> extension
Extensions for Result
- on
-
- Result<
T, E>
- Result<
Properties
- errorOrNull → E?
-
Returns the error if it exists, otherwise null
no setter
- resultOrNull → T?
-
Returns the result a the specified value
no setter
Methods
-
mapOrNull<
U> (U transform(T)) → U? - Returns a transformed value or null