DrivenChipStyle class

Create a ChipStyle when some events occurs

Inheritance
Implemented types

Constructors

DrivenChipStyle({SheetVariant? variant, SheetSeverity? severity, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, bool? overlayDisabled, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, StrokeStyle? checkmarkStyle, AvatarStyle? avatarStyle, ChipStyle? selectedStyle, ChipStyle? disabledStyle, ChipStyle? hoveredStyle, ChipStyle? focusedStyle, ChipStyle? pressedStyle, bool? mergeResolved})
Create a raw DrivenChipStyle.
const
DrivenChipStyle.elevated({Color? color, SheetSeverity? severity, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, bool? overlayDisabled, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, double? backgroundOpacity, int? backgroundAlpha, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle = BorderStyle.none, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, StrokeStyle? checkmarkStyle, AvatarStyle? avatarStyle, ChipStyle? selectedStyle, ChipStyle? disabledStyle, ChipStyle? hoveredStyle, ChipStyle? focusedStyle, ChipStyle? pressedStyle, bool? mergeResolved})
Create a DrivenChipStyle with default value for elevated style.
const
DrivenChipStyle.filled({Color? color, SheetSeverity? severity, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, bool? overlayDisabled, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, double? backgroundOpacity, int? backgroundAlpha, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle = BorderStyle.none, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, StrokeStyle? checkmarkStyle, AvatarStyle? avatarStyle, ChipStyle? selectedStyle, ChipStyle? disabledStyle, ChipStyle? hoveredStyle, ChipStyle? focusedStyle, ChipStyle? pressedStyle, bool? mergeResolved})
Create a DrivenChipStyle with default value for filled style.
const
DrivenChipStyle.from(ChipStyle? enabled, {ChipStyle? selectedStyle, ChipStyle? focusedStyle, ChipStyle? hoveredStyle, ChipStyle? pressedStyle, ChipStyle? disabledStyle, bool? mergeResolved})
Create a DrivenChipStyle with value from another ChipStyle.
DrivenChipStyle.outlined({Color? color, SheetSeverity? severity, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, bool? overlayDisabled, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle = BorderStyle.solid, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, StrokeStyle? checkmarkStyle, AvatarStyle? avatarStyle, ChipStyle? selectedStyle, ChipStyle? disabledStyle, ChipStyle? hoveredStyle, ChipStyle? focusedStyle, ChipStyle? pressedStyle, bool? mergeResolved})
Create a DrivenChipStyle with default value for outlined style.
DrivenChipStyle.resolver(DrivenPropertyResolver<ChipStyle?> resolver, {bool? mergeResolved = false})
Create a DrivenChipStyle from a resolver callback
DrivenChipStyle.tonal({Color? color, SheetSeverity? severity, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Clip? clipBehavior, bool? overlayDisabled, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle = BorderStyle.none, Color? iconColor, double? iconOpacity, double? iconSize, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, StrokeStyle? checkmarkStyle, AvatarStyle? avatarStyle, ChipStyle? selectedStyle, ChipStyle? disabledStyle, ChipStyle? hoveredStyle, ChipStyle? focusedStyle, ChipStyle? pressedStyle, bool? mergeResolved})
Create a DrivenChipStyle with default value for toned style.
const

Properties

alignment Alignment?
Align the child within the sheet.
finalinherited
avatarStyle AvatarStyle?
The style to be applied to the avatar
finalinherited
backgroundAlpha int?
Alpha to be apply to backgroundColor.
finalinherited
backgroundColor Color?
Color to be used for the sheet'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 sheet's border.
finalinherited
borderOpacity double?
Opacity to be apply to borderColor.
finalinherited
borderRadius BorderRadius?
The radii for each corner of the sheet's border.
finalinherited
borderStyle BorderStyle?
The style of this side of the sheet's border.
finalinherited
borderWidth double?
The width of this side of the sheet's border, in logical pixels.
finalinherited
checkmarkColor Color?
The Color to be apply to the checkmark.
finalinherited
checkmarkSize double?
Defaults to ChipStyle.defaultCheckmarkSize.
finalinherited
checkmarkStyle StrokeStyle?
Defaults to StrokeStyle.sharp.
finalinherited
checkmarkWeight double?
Stroke width of the checkmark.
finalinherited
clipBehavior Clip?
The sheet's content will be clipped (or not) according to this option.
finalinherited
disabledStyle ChipStyle?
The style to be resolved when events includes WidgetEvent.disabled.
final
driven Map<WidgetEvent, ChipStyle?>
Map of driven style, order matters
no setter
elevation double?
The sheet's z-coordinate relative to the parent at which to place this physical object.
finalinherited
focusedStyle ChipStyle?
The style to be resolved when events includes WidgetEvent.focused.
final
foregroundAlign CrossAxisAlignment?
Cross axis alignment of the foreground widget
finalinherited
foregroundAlpha int?
Alpha to be apply to foregroundColor.
finalinherited
foregroundColor Color?
The color to be applied to the sheet's label, and icon
finalinherited
foregroundExpanded bool?
Whether the foreground widget is expanded or not
finalinherited
foregroundJustify MainAxisAlignment?
Main axis alignment of the foreground widget
finalinherited
foregroundLoosen bool?
Whether the spacing is forced to child with no leading or trailing.
finalinherited
foregroundOpacity double?
Opacity to be apply to foregroundColor.
finalinherited
foregroundSpacing double?
How much space to place between sheet's foreground widget in a run in the main axis.
finalinherited
foregroundStyle TextStyle?
The style to be applied to the sheet's label.
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
The vertical extent of the sheet widget.
finalinherited
hoveredStyle ChipStyle?
The style to be resolved when events includes WidgetEvent.hovered.
final
iconColor Color?
Color to be used for the icon's inside the sheet.
finalinherited
iconOpacity double?
Opacity to be apply to iconColor.
finalinherited
iconSize double?
The size of the icon's inside the sheet, in logical pixels.
finalinherited
isElevated bool
Whether or not this is elevated variant
no setterinherited
isFilled bool
Whether or not this is filled variant
no setterinherited
isOutlined bool
Whether or not this is outlined variant
no setterinherited
isText bool
Whether or not this is text variant
no setterinherited
isTonal bool
Whether or not this is tonal variant
no setterinherited
margin EdgeInsetsGeometry?
Empty space to surround the outside sheet.
finalinherited
mergeResolved bool?
Whether the resolved style is merged to the previous resolved style or not
final
overlayColor Color?
Defines the overlay colors.
finalinherited
overlayDisabled bool?
Whether the overlay is disabled or not
finalinherited
padding EdgeInsetsGeometry?
The padding between the contents of the sheet and the outside sheet.
finalinherited
pressedStyle ChipStyle?
The style to be resolved when events includes WidgetEvent.pressed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectedStyle ChipStyle?
The style to be resolved when events includes WidgetEvent.selected.
final
severity SheetSeverity?
Type of the sheet severity
finalinherited
shadowColor Color?
When elevation is non zero the color to use for the sheet's shadow color.
finalinherited
shape BoxShape?
The type of shape.
finalinherited
surfaceTint Color?
The color used as an overlay on color to indicate elevation.
finalinherited
variant SheetVariant?
Type of the sheet variant
finalinherited
width double?
The horizontal extent of the sheet widget.
finalinherited

Methods

copyWith({ChipVariant? variant, ChipSeverity? severity, double? width, double? height, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, Alignment? alignment, Clip? clipBehavior, bool? overlayDisabled, Color? overlayColor, Color? shadowColor, Color? surfaceTint, double? elevation, TextStyle? foregroundStyle, Color? foregroundColor, double? foregroundOpacity, int? foregroundAlpha, double? foregroundSpacing, bool? foregroundLoosen, bool? foregroundExpanded, CrossAxisAlignment? foregroundAlign, MainAxisAlignment? foregroundJustify, Color? backgroundColor, double? backgroundOpacity, int? backgroundAlpha, Color? borderColor, double? borderOpacity, int? borderAlpha, double? borderWidth, BorderRadius? borderRadius, BorderStyle? borderStyle, BoxShape? shape, Color? iconColor, double? iconOpacity, double? iconSize, AvatarStyle? avatarStyle, Color? checkmarkColor, double? checkmarkSize, double? checkmarkWeight, StrokeStyle? checkmarkStyle, bool? mergeResolved, ChipStyle? selectedStyle, ChipStyle? disabledStyle, ChipStyle? hoveredStyle, ChipStyle? focusedStyle, ChipStyle? pressedStyle}) DrivenChipStyle
Creates a copy of this DrivenChipStyle but with the given fields replaced with the new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
merge(covariant ChipStyle? other) ChipStyle
Creates a copy of this ChipStyle 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) ChipStyle
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>
override
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(ChipStyle? value, Set<WidgetEvent> events) ChipStyle?
Resolves the value for the given set of events if value is an event driven ChipStyle, otherwise returns the value itself.
override