re: API Design: Optional Parameters VIEW POST

TOP OF THREAD FULL DISCUSSION
re: While there's optional parameter(which might be risky if we put default values in some edge cases.). There's named parameters. which is more readab...
 

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

 

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.

code of conduct - report abuse