1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-09 06:18:49 +00:00

web/charts: Migrate to null safety (#921)

This commit is contained in:
Brett Morgan
2021-10-08 16:39:37 +11:00
committed by GitHub
parent d14e79b833
commit 8932e60976
106 changed files with 355 additions and 346 deletions

View File

@@ -23,10 +23,10 @@ import 'package:charts_flutter/flutter.dart' as charts;
/// Example of using a custom primary measure replacing the renderSpec with one
/// that aligns the text under the tick and left justifies.
class MeasureAxisLabelAlignment extends StatelessWidget {
final List<charts.Series> seriesList;
final bool animate;
final List<charts.Series<dynamic, String>> seriesList;
final bool? animate;
const MeasureAxisLabelAlignment(this.seriesList, {this.animate, Key key})
const MeasureAxisLabelAlignment(this.seriesList, {this.animate, Key? key})
: super(key: key);
factory MeasureAxisLabelAlignment.withSampleData() {