-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Closed as not planned
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.
Description
moving from:
class _FalseColorSwitch extends StatelessWidget {
@override
Widget build(BuildContext context) {
to
class _FalseColorSwitch extends StatelessWidget {
const _FalseColorSwitch(); // adding a const constructor that does nothing
@override
Widget build(BuildContext context) {
give me so many linter optimization suggestions:
Use 'const' with the constructor to improve performance.
Try adding the 'const' keyword to the constructor invocation.
I think no constructor should give me the same recommendation as a const constructor that does nothing. is there an actual difference?
albertms10 and stephane-archer
Metadata
Metadata
Assignees
Labels
devexp-linterIssues with the analyzer's support for the linter packageIssues with the analyzer's support for the linter packagelegacy-area-analyzerUse area-devexp instead.Use area-devexp instead.