Filip Hracek
1 min readOct 15, 2019

--

Thank you for this amazing article! One nit I’d like to point out: you don’t need nearly as many this. as you would in, say, JavaScript. In Dart, scoping takes care of that. If I’m not mistaken, you can remove this. from everywhere in your code here, and it will work just as well. The only reason you’d use this. in Dart are initialization formals (like MyObject(this.myField)) and outright name conflicts (like var widget = this.widget). Cheers!

--

--

Filip Hracek
Filip Hracek

Written by Filip Hracek

I’m a pro­gram­ming buff with formal train­ing in jour­nal­ism. I build games, teach pro­gram­ming, explain things, and create silly soft­ware experiments.

No responses yet