From c865207540a1eb960aa89ac61ba89d0f0fa7bd17 Mon Sep 17 00:00:00 2001 From: yaakovschectman <109111084+yaakovschectman@users.noreply.github.com> Date: Tue, 23 Aug 2022 15:58:56 -0400 Subject: [PATCH] Document tristate value (#110106) Documentation for Checkbox.value previously did not cover the tristate case. --- packages/flutter/lib/src/material/checkbox.dart | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/flutter/lib/src/material/checkbox.dart b/packages/flutter/lib/src/material/checkbox.dart index ecc05710eda..bfb7aae9cac 100644 --- a/packages/flutter/lib/src/material/checkbox.dart +++ b/packages/flutter/lib/src/material/checkbox.dart @@ -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.