Curly brackets {} are used to specify optional, named parameters in Dart . Named parameters are referenced by name, which means that they can be used during the function invocation in an order different from the function declaration.
How do you define a parameter in darts?
Curly brackets {} are used to specify optional, named parameters in Dart . Named parameters are referenced by name, which means that they can be used during the function invocation in an order different from the function declaration.