Functions with named parameters

suggest change

When 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);

Feedback about page:

Optional: your email if you want me to get back to you:

Table Of Contents