CheckboxStyle class

The style to be applied to checkbox widget

Mixed in types
Implementers
Annotations

Constructors

CheckboxStyle({double? size, BoxShape? shape, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, double? checkmarkInset, Color? checkmarkColor, double? checkmarkOpacity, int? checkmarkAlpha, double? checkmarkWeight, StrokeStyle? checkmarkStyle, Color? overlayColor, double? overlayOpacity, bool? overlayDisabled, double? overlayRadius})
Create a raw style of checkbox widget
const
CheckboxStyle.from(CheckboxStyle? other)
Create a checkbox's style from another style

Properties

backgroundAlpha int?
Alpha to be apply to backgroundColor.
final
backgroundColor Color?
Color to be used for the checkbox's background.
final
backgroundOpacity double?
Opacity to be apply to backgroundColor.
final
borderAlpha int?
Alpha to be apply to borderColor.
final
borderColor Color?
Color to be used for the checkbox's border.
final
borderOpacity double?
Opacity to be apply to borderColor.
final
borderRadius BorderRadius?
The radii for each corner of the checkbox's border.
final
borderStyle BorderStyle?
The style of this side of the checkbox's border.
final
borderWidth double?
The width of this side of the checkbox's border, in logical pixels.
final
checkmarkAlpha int?
Alpha to be apply to checkmarkColor.
final
checkmarkColor Color?
The Color to be apply to the checkmark.
final
checkmarkInset double?
The space between the border or the edge of background and the checkmark in logical pixels.
final
checkmarkOpacity double?
Opacity to be apply to checkmarkColor.
final
checkmarkStyle StrokeStyle?
The type of stroke style
final
checkmarkWeight double?
Stroke width of the checkmark.
final
hashCode int
The hash code for this object.
no setteroverride
margin EdgeInsetsGeometry?
Empty space to surround the outside clickable area.
final
overlayColor Color?
The overlay color when pressed, hovered over, or focused.
final
overlayDisabled bool?
Whether the overlay is disabled or not, when the checkbox has a label.
final
overlayOpacity double?
The overlay opacity when pressed, hovered over, or focused.
final
overlayRadius double?
The radius of the overlay. If the checkbox doesn't have a label.
final
padding EdgeInsetsGeometry?
Empty space to increase the clickable area.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shape BoxShape?
Type of the checkbox shape.
final
size double?
The size of the checkmark in logical pixels.
final

Methods

copyWith({double? size, BoxShape? shape, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, double? checkmarkInset, Color? checkmarkColor, double? checkmarkOpacity, int? checkmarkAlpha, double? checkmarkWeight, StrokeStyle? checkmarkStyle, Color? overlayColor, double? overlayOpacity, bool? overlayDisabled, double? overlayRadius, bool? mergeResolved, CheckboxStyle? selectedStyle, CheckboxStyle? indeterminateStyle, CheckboxStyle? focusedStyle, CheckboxStyle? hoveredStyle, CheckboxStyle? pressedStyle, CheckboxStyle? disabledStyle}) CheckboxStyle
Creates a copy of this CheckboxStyle but with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
merge(CheckboxStyle? other) CheckboxStyle
Creates a copy of this CheckboxStyle but with the given fields replaced with the new values.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toMap() Map<String, dynamic>
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringShort() String
A brief description of this object, usually just the runtimeType and the hashCode.
inherited

Operators

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

Static Methods

lerp(CheckboxStyle? a, CheckboxStyle? b, double t) CheckboxStyle?
Linearly interpolate between two CheckboxStyle objects.