Cascade notation (..)

// allows you to make a sequence of operations on the same object
// rather than doing this
var user = User();
user.name = "Nicola";
user.email = "[[email protected]](/cdn-cgi/l/email-protection)";
user.age = 24;
// you can do this
var user = User()
  ..name = "Nicola"
  ..email = "[[email protected]](/cdn-cgi/l/email-protection)"
  ..age = 24;
Comments