3 ms·
Cascade operators are really nice in Dart. If you are lazy to click on the article: var something = new Person() ..firstName = 'John' ..lastNam
by isoos 9y ago
Cascade operators are really nice in Dart. If you are lazy to click on the article:
var something = new Person()
..firstName = 'John'
..lastName = 'Doe'
..address = 'unknown';
Although for final values the constructor initialization works for me better, the cascade is useful in many other cases.