defaultValue property

Object? defaultValue
getter/setter pair

The default value of an optional parameter.

If the parameter is required, the default value will be ignored.

The values for Object must be JSON objects. It can consist of num, String, bool and null as well as Map and List values.

Implementation

core.Object? defaultValue;