NullResultExtensions<T, E> extension

Extensions for Result

on

Properties

errorOrNull → E?

Available on Result<T, E>, provided by the NullResultExtensions extension

Returns the error if it exists, otherwise null
no setter
resultOrNull → T?

Available on Result<T, E>, provided by the NullResultExtensions extension

Returns the result a the specified value
no setter

Methods

mapOrNull<U>(U transform(T)) → U?

Available on Result<T, E>, provided by the NullResultExtensions extension

Returns a transformed value or null