init method
Creates a copy of this using the provided name
for late initialization.
If $name was already set, it should have precedence over name
.
Example: Arg(0).init(name: 'integer') => Arg(0, name: 'integer') Arg(0, name: 'int').init(name: 'integer') => Arg(0, name: 'int')
Implementation
@override
EnumArg<T> init({
required String name,
}) {
return EnumArg<T>(
value,
name: $name == null ? name : $name,
values: values,
labelBuilder: labelBuilder,
);
}