NavArgumentBuilder


@NavDestinationDsl
class NavArgumentBuilder


DSL for constructing a new NavArgument

Summary

Public constructors

Public functions

NavArgument

Builds the NavArgument by calling NavArgument.Builder.build.

Public properties

Any?

An optional default value for this argument.

Boolean

Controls if this argument allows null values.

NavType<*>

The NavType for this argument.

Public constructors

Added in 1.0.0
NavArgumentBuilder()

Public functions

build

Added in 1.0.0
fun build(): NavArgument

Builds the NavArgument by calling NavArgument.Builder.build.

Public properties

defaultValue

Added in 1.0.0
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

Added in 1.0.0
var nullableBoolean

Controls if this argument allows null values.

type

Added in 1.0.0
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.