toOrNull

fun <T> toOrNull(valueTransformer: CommanderValueTransformer<T>): T?(source)

Convert the value to a specific type (using a CommanderValueTransformer) or null

Return

the transformed value or null

Since

0.1.0

Parameters

T

the type of the value

valueTransformer

See also


fun <T> toOrNull(valueTransformer: CommanderValueTransformerLambda<T>): T?(source)

Convert the value to a specific type (using a CommanderValueTransformerLambda) or null

Return

the transformed value or null

Since

0.1.0

Parameters

T

the type of the value

valueTransformer

See also