mirror of
https://github.com/flutter/samples.git
synced 2025-11-10 06:48:26 +00:00
web/charts: Migrate to null safety (#921)
This commit is contained in:
@@ -22,10 +22,10 @@ import 'package:charts_flutter/flutter.dart' as charts;
|
||||
|
||||
/// Example of a Spark Bar by hiding both axis, reducing the chart margins.
|
||||
class SparkBar extends StatelessWidget {
|
||||
final List<charts.Series> seriesList;
|
||||
final bool animate;
|
||||
final List<charts.Series<dynamic, String>> seriesList;
|
||||
final bool? animate;
|
||||
|
||||
const SparkBar(this.seriesList, {this.animate, Key key}) : super(key: key);
|
||||
const SparkBar(this.seriesList, {this.animate, Key? key}) : super(key: key);
|
||||
|
||||
factory SparkBar.withSampleData() {
|
||||
return SparkBar(
|
||||
|
||||
Reference in New Issue
Block a user