title: The argument type 'List<Series<dynamic, dynamic>>' can't be assigned to the parameter type 'List<Series<dynamic, String>>
body: <p>I have an issue with this flutter simple chart code. Showing this error while I try to run the code. Please can anyone help me in this....</p>
  <blockquote>
  <p>The argument type 'List&lt;Series&lt;dynamic, dynamic&gt;&gt;' can't be assigned to the parameter type 'List&lt;Series&lt;dynamic, String&gt;&gt;</p>
  </blockquote>
  <blockquote>
  <p>This is the code sample:</p>
  </blockquote>
  <pre><code>//Bar chart example
  import 'package:charts_flutter/flutter.dart' as charts;
  import 'package:flutter/material.dart';
  
  class SimpleBarChart extends StatelessWidget {
    final List&lt;charts.Series&gt; seriesList;
    final bool animate;
  
    SimpleBarChart(this.seriesList, {this.animate = false});
  
    /// Creates a [BarChart] with sample data and no transition.
    factory SimpleBarChart.withSampleData() {
      return new SimpleBarChart(
        _createSampleData(),
        // Disable animations for image tests.
        animate: false,
      );
    }
  
  
    @override
    Widget build(BuildContext context) {
      return new charts.BarChart(
        seriesList,
        animate: animate,
      );
    }
  
    /// Create one series with sample hard coded data.
    static List&lt;charts.Series&lt;OrdinalSales, String&gt;&gt; _createSampleData() {
      final data = [
        new OrdinalSales('Today', 55),
        new OrdinalSales('Yesterday', 25),
        new OrdinalSales('2 days', 100),
        new OrdinalSales('24 June', 75),
        new OrdinalSales('23 June', 75),
        new OrdinalSales('23 June', 75),
        new OrdinalSales('22 June', 75),
      ];
  
      return [
        new charts.Series&lt;OrdinalSales, String&gt;(
          id: 'Sales',
          colorFn: (_, __) =&gt; charts.MaterialPalette.blue.shadeDefault,
          domainFn: (OrdinalSales sales, _) =&gt; sales.year,
          measureFn: (OrdinalSales sales, _) =&gt; sales.sales,
          data: data,
        )
      ];
    }
  }
  
  /// Sample ordinal data type.
  class OrdinalSales {
    final String year;
    final int sales;
  
    OrdinalSales(this.year, this.sales);
  }
  </code></pre>
  <hr />
  <pre><code>Launching lib\main.dart on Chrome in debug mode... Waiting for connection from debug service on Chrome... lib/widgets/barChart.dart:24:7: Error: The argument type 'List&lt;Series&lt;dynamic, dynamic&gt;&gt;' can't be assigned to the parameter type 'List&lt;Series&lt;dynamic, String&gt;&gt;'.
   - 'List' is from 'dart:core'.
   - 'Series' is from 'package:charts_common/src/data/series.dart' ('/C:/flutter/.pub-cache/hosted/pub.dartlang.org/charts_common-0.11.0/lib/src/data/series.dart').
        seriesList,
        ^ Failed to compile application.
  </code></pre>