mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
add ? (#88019)
This commit is contained in:
parent
79ff8a5cb6
commit
10aad08a34
@ -138,9 +138,9 @@ class Checkbox extends StatefulWidget {
|
||||
/// ```dart
|
||||
/// Checkbox(
|
||||
/// value: _throwShotAway,
|
||||
/// onChanged: (bool newValue) {
|
||||
/// onChanged: (bool? newValue) {
|
||||
/// setState(() {
|
||||
/// _throwShotAway = newValue;
|
||||
/// _throwShotAway = newValue!;
|
||||
/// });
|
||||
/// },
|
||||
/// )
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user