Saltar al contenido principal

binary-expression-operand-order

added in: 1.0.0 style

Warns when a literal value is on the left hand side in a binary expressions.

Bad:

final a = 1 + b;

Good:

final a = b + 1;