binary-expression-operand-order
added in: 1.7.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;
Inspired by TSLint rule
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;
Inspired by TSLint rule