FieldCheckbox class
A Material Design checkbox.
The checkbox itself does not maintain any state. Instead, when the state of the checkbox changes, the widget calls the onChanged callback. Most widgets that use a checkbox will listen for the onChanged callback and rebuild the checkbox with a new value to update the visual appearance of the checkbox.
The checkbox can optionally display three values - true, false, and null - if tristate is true. When value is null a dash is displayed. By default tristate is false and the checkbox's value must be true or false.
Constructors
- FieldCheckbox({String? activeColor, bool? autofocus, String? checkColor, String? fillColor, String? focusColor, String? focusNode, String? hoverColor, String? materialTapTargetSize, String? mouseCursor, String? overlayColor, String? shape, String? side, String? splashRadius, String? tristate, bool? value, String? visualDensity})
-
const
Properties
- activeColor → String?
-
final
- autofocus → bool?
-
final
- checkColor → String?
-
final
- fillColor → String?
-
final
- focusColor → String?
-
final
- focusNode → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hoverColor → String?
-
final
- materialTapTargetSize → String?
-
final
- mouseCursor → String?
-
final
- overlayColor → String?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- shape → String?
-
final
- side → String?
-
final
- splashRadius → String?
-
final
- tristate → String?
-
final
- value → bool?
-
final
- visualDensity → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited