title: Is there an easy way to add Const as much as possible in Flutter?
body: <p>I have read the article here about <a href="https://dart.dev/guides/language/language-tour#final-and-const" rel="noreferrer">Final and Const</a>. I also saw many example code from flutter team use many <strong>const</strong> as they can (just read the example of <a href="https://github.com/rrousselGit/river_pod/blob/master/examples/todos/lib/main.dart" rel="noreferrer">todos list</a> from package river_pod), and some article about how <strong>compile-time constant widget</strong> good for performance (<a href="https://crizantlai.medium.com/flutter-performance-analysis-of-const-constructor-d2a72fd8a043" rel="noreferrer">like this</a>).</p>
  <p>Is there any easy way let the IDE plugin/lint add const Widget/Variable as much as it can automatically? Or give some hint like <code>This Widget/Variable' is better to use with const</code>.</p>
  <p>I checked the <a href="https://pub.dev/packages/lint" rel="noreferrer">lint package</a> here and read <a href="https://dart.dev/guides/language/effective-dart/style" rel="noreferrer">Effective Dart:Style</a>, but didn't see any information about it.</p>
  <p>Thanks for help!</p>
  <p>I add some example cases:</p>
  <pre><code>ListView(
    padding: const EdgeInsets.symmetric(horizontal: 20, vertical: 40), // here
    children: [ ...
      const SizedBox(height: 42), //here
      const Image( //here
        width: 100,
        height: 100,
        image: AssetImage('assets/logo.png'),
      )
      ...
  </code></pre>
  <p>or even a class</p>
  <pre><code>Container(
    child: const Toolbar(), //here
  ...
  
  class Toolbar extends HookWidget {
    const Toolbar({Key key}) : super(key: key); //here
    ...
  </code></pre>