DEV Community

loading...

Discussion on: API Design: Optional Parameters

Collapse
samwho profile image
Sam Rose Author

For sure! I talk about these in the second half of the post. 😀

Collapse
vinceramces profile image
Vince Ramces Oliveros

From what I've understood from optional parameters is that, optional parameters have default values, while named parameters don't need. but in Dart, when declaring a named parameters/arguments, they use @required annotation that a specific argument should have a value declared when using it. Great Article by the way. Sorry if I differentiate optional and named parameters. This was something Dart clarifies me of using it when developing flutter apps.