mirror of
https://github.com/flutter/samples.git
synced 2025-11-08 22:09:06 +00:00
web/charts: Migrate to null safety (#921)
This commit is contained in:
@@ -21,9 +21,9 @@ class GalleryDrawer extends StatelessWidget {
|
||||
final ValueChanged<bool> onShowPerformanceOverlayChanged;
|
||||
|
||||
const GalleryDrawer(
|
||||
{Key key,
|
||||
this.showPerformanceOverlay,
|
||||
this.onShowPerformanceOverlayChanged})
|
||||
{Key? key,
|
||||
required this.showPerformanceOverlay,
|
||||
required this.onShowPerformanceOverlayChanged})
|
||||
: super(key: key);
|
||||
|
||||
@override
|
||||
@@ -40,7 +40,7 @@ class GalleryDrawer extends StatelessWidget {
|
||||
selected: showPerformanceOverlay,
|
||||
trailing: Checkbox(
|
||||
value: showPerformanceOverlay,
|
||||
onChanged: (bool value) {
|
||||
onChanged: (bool? value) {
|
||||
onShowPerformanceOverlayChanged(!showPerformanceOverlay);
|
||||
},
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user