StacCheckboxThemeData class

A Stac model representing Flutter's CheckboxThemeData.

Defines the theme for checkboxes, including colors, shape, size, and interaction properties.

{@tool snippet} Dart Example:

StacCheckboxThemeData(
  fillColor: '#2196F3',
  checkColor: '#FFFFFF',
  shape: StacRoundedRectangleBorder(...),
)

{@end-tool}

{@tool snippet} JSON Example:

{
  "fillColor": "#2196F3",
  "checkColor": "#FFFFFF",
  "overlayColor": "#E3F2FD",
  "splashRadius": 20.0,
  "materialTapTargetSize": "padded",
  "visualDensity": "standard"
}

{@end-tool}

Implemented types
Available extensions
Annotations
  • @JsonSerializable.new()

Constructors

StacCheckboxThemeData({StacMouseCursor? mouseCursor, String? fillColor, String? checkColor, String? overlayColor, double? splashRadius, StacMaterialTapTargetSize? materialTapTargetSize, StacVisualDensity? visualDensity, StacShapeBorder? shape, StacBorderSide? side})
Creates a StacCheckboxThemeData with the given properties.
const
StacCheckboxThemeData.fromJson(Map<String, dynamic> json)
Creates a StacCheckboxThemeData from JSON.
factory

Properties

checkColor String?
The color of the check icon.
final
fillColor String?
The color to fill the checkbox with.
final
hashCode int
The hash code for this object.
no setterinherited
materialTapTargetSize StacMaterialTapTargetSize?
The minimum size of the tap target.
final
mouseCursor StacMouseCursor?
The mouse cursor to use when hovering over the checkbox.
final
overlayColor String?
The color of the overlay shown when the checkbox is pressed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape StacShapeBorder?
The shape of the checkbox's border.
final
side StacBorderSide?
The border side of the checkbox.
final
splashRadius double?
The radius of the splash effect.
final
visualDensity StacVisualDensity?
The visual density of the checkbox.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse(BuildContext context) CheckboxThemeData

Available on StacCheckboxThemeData, provided by the StacCheckboxThemeDataParser extension

toJson() Map<String, dynamic>
Converts this checkbox theme to JSON.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited