CheckboxState enum

Represents the possible states of a checkbox widget.

Supports the standard checked/unchecked binary states as well as an indeterminate state commonly used to represent partial selection in hierarchical or grouped checkbox scenarios.

The enum implements Comparable to provide consistent ordering: checked < unchecked < indeterminate (based on declaration order).

Inheritance
Implemented types
Available extensions

Values

checked → const CheckboxState

The checkbox is selected/checked state.

Visually represented with a checkmark icon inside the checkbox square. Indicates the associated option or value is selected/enabled.

unchecked → const CheckboxState

The checkbox is unselected/unchecked state.

Visually represented as an empty checkbox square with border. Indicates the associated option or value is not selected/disabled.

indeterminate → const CheckboxState

The checkbox is in a partially selected/indeterminate state.

Visually represented with a small square inside the checkbox. Typically used in hierarchical structures to indicate some but not all child items are selected, or when the state is unknown/mixed.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(CheckboxState other) int
Compares checkbox states based on their declaration order.
override
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

Constants

values → const List<CheckboxState>
A constant List of the values in this enum, in order of their declaration.