NullableLet extension

on

Methods

letOrNull<R>(R block(RequiredPick pick)) → R?
Maps the pick if value != null and returns the result.
letOrThrow<R>(R block(RequiredPick pick)) → R
Maps the non-null value and returns the result. Throws when value == null