-
Notifications
You must be signed in to change notification settings - Fork 36
Closed
Description
Describe the rule you'd like to see added and to what rule set
Dart 2.17 adds the new super params feature (see additional info for an example), and in flutter/flutter#100575 we're migrating Flutter to use.
I propose we add the use_super_parameters lint, which enforces this style, to recommended.
Additional context
Without super parameters:
class MyWidget extends StatelessWidget {
const MyWidget({ Key? key }) : super(key: key);
}With super parameters:
class MyWidget extends StatelessWidget {
const MyWidget({ super.key });
}eernstg, goderbauer, pq, pablojimpas, LeGoffMael and 2 more
Metadata
Metadata
Assignees
Type
Projects
Status
No status