Cascade Notation
.. calls several members on the same object and returns the object.
Example
var sb = StringBuffer()
..write("a")
..write("b")
..writeln("c");
print(sb);
var list = <int>[]..add(1)..add(2);
print(list);Exercise
Cascade operator.
objmethod()
Quiz Test
These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.