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!