what's the difference between [] in constructors, functions declarations, and the normal declarations in dart/flutter

Viewed 15

what does the [] main and do exactly in some cases like this :

doSomething([List<String> list, double num ]) {

}

I mean when should I use it exactly?

0 Answers
Related