Flutter – Passing an optional value as a constructor parameter with default value in Dart?
I have a class Foo that has a named parameter bar. I want to make sure bar always have a value. I also have an optional variable _bar, which could be either null or having some value. I tried passing…