Skip to content

Commit

Permalink
Document tristate value (#110106)
Browse files Browse the repository at this point in the history
Documentation for Checkbox.value previously did not cover the tristate case.
  • Loading branch information
yaakovschectman authored Aug 23, 2022
1 parent 8027842 commit c865207
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/flutter/lib/src/material/checkbox.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@ class Checkbox extends StatefulWidget {

/// Whether this checkbox is checked.
///
/// This property must not be null.
/// When [tristate] is true, a value of null corresponds to the mixed state.
/// When [tristate] is false, this value must not be null.
final bool? value;

/// Called when the value of the checkbox should change.
Expand Down

0 comments on commit c865207

Please sign in to comment.