use_named_constants

Group: style

Maturity: stable

Linter vnull

Since info is static, may be stale

View all Lint Rules

Using the Linter

Where possible, use already defined const values.

BAD:

const Duration(seconds: 0);

GOOD:

Duration.zero;