optional

fun optional(default: Q): QueryParameter<Q>(source)

Returns an optional version of this parameter with the supplied default value.

Return

a copy of the parameter marked as optional with the provided default.

Parameters

default

default value used when the caller omits the parameter.

See also