WxDrivenAnchorStyle class

Create a WxAnchorStyle that can handle widget event.

Inheritance
Implemented types

Constructors

WxDrivenAnchorStyle({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? scale, double? opacity, ShapeBorder? overlayShape, Size? overlayExtent, Color? overlayColor, double? overlayOpacity, Color? textColor, TextStyle? textStyle, TextAlign? textAlign, Color? iconColor, double? iconOpacity, double? iconSize, WxAnchorStyle? focusedStyle, WxAnchorStyle? hoveredStyle, WxAnchorStyle? pressedStyle, WxAnchorStyle? disabledStyle, bool? inherits})
Create a rectangle shaped WxDrivenAnchorStyle.
const
WxDrivenAnchorStyle.circle({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? scale, double? opacity, Color? overlayColor, double? overlayOpacity, double? overlayRadius, Color? textColor, TextStyle? textStyle, TextAlign? textAlign, Color? iconColor, double? iconOpacity, double? iconSize, WxAnchorStyle? focusedStyle, WxAnchorStyle? hoveredStyle, WxAnchorStyle? pressedStyle, WxAnchorStyle? disabledStyle, bool? inherits})
Create a circle shaped WxDrivenAnchorStyle.
WxDrivenAnchorStyle.fromAncestor(WxAnchorStyle? enabled, {WxAnchorStyle? focusedStyle, WxAnchorStyle? hoveredStyle, WxAnchorStyle? pressedStyle, WxAnchorStyle? disabledStyle, bool? inherits})
Create a WxDrivenAnchorStyle with value from another WxAnchorStyle.
WxDrivenAnchorStyle.rectangle({BorderRadius borderRadius = BorderRadius.zero, EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? scale, double? opacity, Color? overlayColor, double? overlayOpacity, Size? overlayExtent, Color? textColor, TextStyle? textStyle, TextAlign? textAlign, Color? iconColor, double? iconOpacity, double? iconSize, WxAnchorStyle? focusedStyle, WxAnchorStyle? hoveredStyle, WxAnchorStyle? pressedStyle, WxAnchorStyle? disabledStyle, bool? inherits})
Default constructor for a driven WxAnchorStyle.
WxDrivenAnchorStyle.resolver(DrivenPropertyResolver<WxAnchorStyle?> resolver, {bool? inherits = false})
Create a WxDrivenAnchorStyle from a resolver callback

Properties

disabledStyle WxAnchorStyle?
The style to be resolved when events includes WxAnchorEvent.disabled.
final
driven Map<WidgetEvent, WxAnchorStyle?>
Map of driven style, order matters
no setter
focusedStyle WxAnchorStyle?
The style to be resolved when events includes WxAnchorEvent.focused.
final
hashCode int
The hash code for this object.
no setterinherited
hoveredStyle WxAnchorStyle?
The style to be resolved when events includes WxAnchorEvent.hovered.
final
iconColor Color?
Color to be used for the icon's inside the anchor.
finalinherited
iconOpacity double?
Opacity to be apply to iconColor.
finalinherited
iconSize double?
The size of the icon's inside the anchor, in logical pixels.
finalinherited
inherits bool?
Whether the resolved style is merged to the previous resolved style or not
final
margin EdgeInsetsGeometry?
Empty space to surround the outside anchor.
finalinherited
opacity double?
The child opacity of the anchor when pressed, hovered over, or focused.
finalinherited
overlayColor Color?
The overlay color of the anchor when pressed, hovered over, or focused.
finalinherited
overlayExtent Size?
The extent of the overlay.
finalinherited
overlayOpacity double?
The overlay opacity of the anchor when pressed, hovered over, or focused.
finalinherited
overlayShape ShapeBorder?
The shape (e.g., circle, rectangle) to use for the overlay drawn around this part of the anchor when pressed, hovered over, or focused.
finalinherited
padding EdgeInsetsGeometry?
The padding between the contents of the anchor and the outside anchor.
finalinherited
pressedStyle WxAnchorStyle?
The style to be resolved when events includes WxAnchorEvent.pressed.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
scale double?
The child scale of the anchor when pressed, hovered over, or focused.
finalinherited
textAlign TextAlign?
The align to be applied to the anchor's child. This only has an effect on widgets that respect the DefaultTextStyle, such as Text.
finalinherited
textColor Color?
The text color to be applied to child.
finalinherited
textStyle TextStyle?
The style to be applied to the anchor's child.
finalinherited

Methods

copyWith({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? scale, double? opacity, Color? overlayColor, double? overlayOpacity, ShapeBorder? overlayShape, Size? overlayExtent, Color? textColor, TextStyle? textStyle, TextAlign? textAlign, Color? iconColor, double? iconOpacity, double? iconSize, WxAnchorStyle? focusedStyle, WxAnchorStyle? hoveredStyle, WxAnchorStyle? pressedStyle, WxAnchorStyle? disabledStyle, bool? inherits}) WxDrivenAnchorStyle
Creates a copy of this WxAnchorStyle but with the given fields replaced with the new values.
override
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
merge(WxAnchorStyle? other) WxDrivenAnchorStyle
Creates a copy of this WxAnchorStyle but with the given fields replaced with the new values.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
resolve(Set<WidgetEvent> events) WxAnchorStyle
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(WxAnchorStyle? value, Set<WidgetEvent> events) WxAnchorStyle?
Resolves the value for the given set of events if value is an event driven WxAnchorStyle, otherwise returns the value itself.
override