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