Non-const default values for static / top-level methods #3687
Labels
area-language
Dart language related items (some items might be better tracked at github.com/dart-lang/language).
closed-obsolete
Closed as the reported issue is no longer relevant
P2
A bug or feature request we're likely to work on
type-enhancement
A request for a change that isn't a bug
This issue was originally filed by @seaneagan
It would be nice if parameter default values of static/top-level methods could be lazily initialized, probably on the first time the method is called without passing the parameter, the same way that static variables are. For example, you may want to have a parameter default value be the value of a static variable which is lazily initialized.
The text was updated successfully, but these errors were encountered: