DrivenCheckboxStyle class

Create a CheckboxStyle that handle the widget events

Inheritance
Implemented types

Constructors

DrivenCheckboxStyle({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, CheckboxStyle? selectedStyle, CheckboxStyle? indeterminateStyle, CheckboxStyle? focusedStyle, CheckboxStyle? hoveredStyle, CheckboxStyle? pressedStyle, CheckboxStyle? disabledStyle, bool? mergeResolved})
Create a raw of driven checkbox style
const
DrivenCheckboxStyle.from(CheckboxStyle? enabledStyle, {CheckboxStyle? selectedStyle, CheckboxStyle? indeterminateStyle, CheckboxStyle? focusedStyle, CheckboxStyle? hoveredStyle, CheckboxStyle? pressedStyle, CheckboxStyle? disabledStyle, bool? mergeResolved})
Create a DrivenCheckboxStyle with value from another CheckboxStyle.
DrivenCheckboxStyle.resolver(DrivenPropertyResolver<CheckboxStyle?> resolver, {bool? mergeResolved = false})
Create a DrivenCheckboxStyle from a resolver callback

Properties

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

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}) DrivenCheckboxStyle
Creates a copy of this DrivenCheckboxStyle but with the given fields replaced with the new values.
override
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.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(Set<WidgetEvent> events) CheckboxStyle
Returns a value of type T that depends on events.
override
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>
inherited
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.
inherited

Static Methods

evaluate(CheckboxStyle? value, Set<WidgetEvent> events) CheckboxStyle?
Resolves the value for the given set of events if value is an event driven CheckboxStyle, otherwise returns the value itself.
override