Operators

+ - * / ~/ %, unary - ++x x++ --x x-- is, is!, as cond ? a: b, a ?? b .. and ?.. ... and ...?

== calls the operator == method (which can be overridden). Use identical() for identity.

final paint = Paint()                 // cascade: multiple operations on one object
  ..color = 'red'
  ..strokeWidth = 4
  ..style = 'stroke';

final sb = StringBuffer()..write('a')..write('b');

var list = [1, 2];
var all = [0, ...list, 3];            // spread
List<int>? nothing;
var safe = [...?nothing];             // null-aware spread

identical(a, b);                       // reference identity