Dart Analyze

Dart Analyze

Community Analyzer

Put required named parameters first DRT-W1042

Anti-pattern
Major

DO specify required on named parameter before other named parameters.

BAD:

m({b, c, required a}) ;

GOOD:

m({required a, b, c}) ;

BAD:

m({b, c, @required a}) ;

GOOD:

m({@required a, b, c}) ;