From 10aad08a34c4bc2cf0319f9dadcc3c19a6cd267d Mon Sep 17 00:00:00 2001 From: Abhishek Ghaskata Date: Sat, 14 Aug 2021 05:32:09 +0530 Subject: [PATCH] add ? (#88019) --- packages/flutter/lib/src/material/checkbox.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/lib/src/material/checkbox.dart b/packages/flutter/lib/src/material/checkbox.dart index b54b46e33c..ddcd1a8fbb 100644 --- a/packages/flutter/lib/src/material/checkbox.dart +++ b/packages/flutter/lib/src/material/checkbox.dart @@ -138,9 +138,9 @@ class Checkbox extends StatefulWidget { /// ```dart /// Checkbox( /// value: _throwShotAway, - /// onChanged: (bool newValue) { + /// onChanged: (bool? newValue) { /// setState(() { - /// _throwShotAway = newValue; + /// _throwShotAway = newValue!; /// }); /// }, /// )