NavArgumentBuilder



DSL for constructing a new NavArgument

Summary

Public constructors

Cmn

Public functions

NavArgument

Builds the NavArgument by calling NavArgument.Builder.build.

Cmn

Public properties

Any?

An optional default value for this argument.

Cmn
Boolean

Controls if this argument allows null values.

Cmn
NavType<*>

The NavType for this argument.

Cmn

Public constructors

NavArgumentBuilder()

Public functions

build

fun build(): NavArgument

Builds the NavArgument by calling NavArgument.Builder.build.

Public properties

defaultValue

var defaultValueAny?

An optional default value for this argument.

Any object that you set here must be compatible with type, if it was specified.

nullable

var nullableBoolean

Controls if this argument allows null values.

type

var typeNavType<*>

The NavType for this argument.

If you don't set a type explicitly, it will be inferred from the default value of this argument.