type

Param

src const class Param : Obj

Param represents one parameter definition of a Func (or Method).

methods

hasDefault

Return if this parameter has a default value.

name

Name of the parameter.

toStr

Return "$type $name"

type

Type of the parameter.

Slot Details

hasDefault

src Bool hasDefault()

Return if this parameter has a default value. If true, then callers are not required to specify an argument.

name

src Str name()

Name of the parameter.

toStr

src virtual override Str toStr()

Return "$type $name"

type

src Type type()

Type of the parameter.