CheckboxStyle class
How a task-list checkbox or radio button is drawn.
Every field is optional. An unset field falls back to the theme, then to the value the package used before this style existed — so setting one field changes one thing and nothing else moves.
A style on the widget wins over the theme per field, not per object.
- Annotations
Constructors
Properties
- borderRadius → Radius?
-
Corner rounding of a checkbox.
final
- checkColor → Color?
-
The tick itself. Defaults to the Material default.
final
- checkedColor → Color?
-
Fill when checked. Defaults to the Material default.
final
- gapAfterBox → double?
-
Space between the box and its label. Defaults to 5.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- interactive → bool?
-
Whether taps are accepted. Defaults to false.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- size → double?
-
Box size. Defaults to the Material default.
final
- uncheckedColor → Color?
-
Border when unchecked. Defaults to the Material default.
final
Methods
-
copyWith(
{double? size, Color? checkedColor, Color? uncheckedColor, Color? checkColor, Radius? borderRadius, double? gapAfterBox, bool? interactive}) → CheckboxStyle - A copy with the given fields replaced.
-
merge(
CheckboxStyle? other) → CheckboxStyle -
This style, with any unset field taken from
other, field by field. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
ColorScheme scheme) → CheckboxStyle - This style with every remaining default filled in.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Static Methods
-
lerp(
CheckboxStyle? a, CheckboxStyle? b, double t) → CheckboxStyle? - Linearly interpolates between two styles.