Consider the following code:
The previous example is equivalent to:
Be careful to construct your cascade on a function that returnsan actual object. For example, the following code fails:
Note: Strictly speaking, the “double dot” notation for cascades is not an operator. It’s just part of the Dart syntax.