google / charts

https://pub.dev/packages/charts_flutter
Apache License 2.0
2.8k stars 1.2k forks source link

dynamic can't be assigned to String #744

Open hostusservices opened 2 years ago

hostusservices commented 2 years ago

List<Series<dynamic, dynamic>> seriesList package:flutter_application_1/widgets/bar_chart.dart

Unnecessary new keyword.dartunnecessary_new The argument type 'List<Series<dynamic, dynamic>>' can't be assigned to the parameter type 'List<Series<dynamic, String>>'

https://github.com/hostusservices/flutter_dashboard.git

image

please help any body

htw5295 commented 2 years ago
final List<charts.Series> seriesList;
//change like below
final List<charts.Series<dynamic, String>> seriesList;

https://stackoverflow.com/questions/68810414/the-argument-type-listseriesdynamic-dynamic-cant-be-assigned-to-the-para