It doesn't appear possible to do this with code_builder and the functionality within Flutter to do this is relatively new.
In terms of an example:
//...
return EnumValue((builder) {
b.name = 'example';
b.arguments.add(literal("Some argument"));
b.arguments.add(literal("Some other argument"), name: "test");
// or alternatively, b.namedArguments could be added to EnumValueBuilder.
});
//...
Where this might result in the following:
// ...
example("Some argument", test: "Some other argument"),
// ...
It doesn't appear possible to do this with code_builder and the functionality within Flutter to do this is relatively new. In terms of an example:
Where this might result in the following: