ParameterDescriptor constructor
ParameterDescriptor({})
Implementation
ParameterDescriptor({
required this.name,
required this.type,
required this.annotations,
this.isNamed = false,
this.isRequired = true,
this.isNullable = false,
defaultValue,
}) {
if ( isRequired && ![String,int,double,bool].contains(type) && !isNullable)
this.defaultValue = this;
else
this.defaultValue = defaultValue;
}