title: Flutter New Project Error const MyApp({Key key}) : super(key: key);
body: <p>Flutter new project showing error with key, when I click run button it showing these error,</p>
  <ul>
  <li>lib/main.dart:7:20: Error: The parameter 'key' can't have a value of 'null' because of its type 'Key', but the implicit default value is 'null'.</li>
  <li>'Key' is from 'package:flutter/src/foundation/key.dart' ('../../android/flutter/packages/flutter/lib/src/foundation/key.dart').
  Try adding either an explicit non-'null' default value or the 'required' modifier.
  const MyApp({Key key}) : super(key: key);
  ^^^
  Failed to compile application.</li>
  </ul>
  <p>Note: I'm using all updated latest version tools.</p>
  <p>My Code is bellow:</p>
  <pre><code>import 'package:flutter/material.dart';
  
  void main(){
    runApp(MyApp());
  }
  class MyApp extends StatelessWidget {
    const MyApp({Key key}) : super(key: key);
  
    @override
    Widget build(BuildContext context) {
      return MaterialApp(
        home: Container(
          child: Text(&quot;Hello World&quot;),
        ),
      );
    }
  }
  </code></pre>