Functions with named parameters
suggest changeWhen defining a function, use {param1, param2, …} to specify named parameters:
void enableFlags({bool bold, bool hidden}) {
// ...
}
When calling a function, you can specify named parameters using paramName: value
enableFlags(bold: true, hidden: false);
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents