FluentCheckboxBaseState class
Everything needed to render a checkbox, independent of size and shape.
The Dart counterpart of upstream's CheckboxBaseState, which is likewise
CheckboxState minus shape and size. buildFluentCheckbox takes this
rather than FluentCheckboxState, which is what makes "Fluent's state, my
own styling, Fluent's rendering" a supported path rather than a fork.
- Implementers
- Annotations
Constructors
- FluentCheckboxBaseState({required bool enabled, required bool? checked, required FluentCheckboxGlyph glyph, required FluentCheckboxLabelPosition labelPosition, Widget? label})
-
Creates a base state.
const
Properties
- checked → bool?
-
The tri-state value:
true,false, or null for mixed.final - enabled → bool
-
Whether the checkbox responds to input.
final
- glyph → FluentCheckboxGlyph
-
The glyph the indicator draws, already resolved from checked and the
shape.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → Widget?
-
The label, if any. Null renders the indicator alone.
final
- labelPosition → FluentCheckboxLabelPosition
-
Which side the label sits on.
final
- mixed → bool
-
Whether this is the mixed (indeterminate) state.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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