title: flutter: Too many positional arguments: 0 expected, but 1 found
body: <p>I've been following <a href="https://resocoder.com/2019/04/06/flutter-nosql-database-sembast-tutorial-w-bloc/" rel="nofollow noreferrer">this NoSQL tutorial</a> which uses BLoC. But when I paste in the code from 'fruit_event.dart' into Visual Studio Code, it gives me an error.</p>
  
  <p>fruit_event.dart:</p>
  
  <pre class="lang-dart prettyprint-override"><code>import 'package:equatable/equatable.dart';
  import 'package:meta/meta.dart';
  import 'package:sembast_prep/data/fruit.dart';
  
  @immutable
  abstract class FruitEvent extends Equatable {
    FruitEvent([List props = const []]) : super(props); // error here!
  }
  
  class LoadFruits extends FruitEvent {}
  
  class AddRandomFruit extends FruitEvent {}
  
  class UpdateWithRandomFruit extends FruitEvent {
    final Fruit updatedFruit;
  
    UpdateWithRandomFruit(this.updatedFruit) : super([updatedFruit]);
  }
  
  class DeleteFruit extends FruitEvent {
    final Fruit fruit;
  
    DeleteFruit(this.fruit) : super([fruit]);
  }
  </code></pre>
  
  <p>I get this error (Visual Studio Code):</p>
  
  <pre><code>[List&lt;dynamic&gt; props = const []]
  Too many positional arguments: 0 expected, but 1 found.
  Try removing the extra positional arguments.dart(extra_positional_arguments)
  </code></pre>