-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Closed
Labels
p: flutter_lintsflutter/packages flutter_lintsflutter/packages flutter_lintsteam-frameworkOwned by Framework teamOwned by Framework team
Description
We would like to investigate if the following lints related to const (which are currently enabled by package:flutter_lints) are carrying their weight:
- prefer_const_constructors
- prefer_const_constructors_in_immutables
- prefer_const_declarations
- prefer_const_literals_to_create_immutables
In theory, constness gives apps a performance boost, but during development these lints constantly nag developers: "Make this const" or "This cannot be const anymore". We should reevaluate if we are making the right trade-off here between naginess and performance.
For now we will limit our investigations to app developers and whether we should continue recommending the lints to them. We are not evaluating whether we should turn these lints off for the framework.
xvrh, bleroux, johnpryan, Wdestroier, loic-sharma and 11 morebigbott and nateshmbhat
Metadata
Metadata
Assignees
Labels
p: flutter_lintsflutter/packages flutter_lintsflutter/packages flutter_lintsteam-frameworkOwned by Framework teamOwned by Framework team