type

Param

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

Bool hasDefault()

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

name

Str name()

Name of the parameter.

toStr

virtual override Str toStr()

Return "$type $name"

type

Type type()

Type of the parameter.