The Dart way is to Move this out of the constructor and into variable declarations. The constructor should be empty.