Constantin Stan
1 min readDec 14, 2019

--

Hello, Peter. Yes, there is a problem: you can’t use a global or higher level declared variable, then declare a local variable using the same name. You either go with the one from the higher level or go with a local declared variable. Can’t mix them.

If you remove the declaration of the local variable in the firstLevel function the problem will be highlighted in the init function. In DartPad, on my side, both problems are highlighted. I’ve got the one based on Dart SDK 2.6.1

Good luck getting up to speed with Dart! (Flutter will follow soon)

--

--

No responses yet