prefer_equal_for_default_values

Group: style

Maturity: stable

Dart SDK: >= 2.0.0 • (Linter v0.1.46)

Since info is static, may be stale
pedanticeffective dart

View all Lint Rules

Using the Linter

From the style guide:

DO Use = to separate a named parameter from its default value.

BAD:

m({a: 1})

GOOD:

m({a = 1})