WxAnchorStyle class

The style to be applied to anchor widget

Mixed-in types
Annotations

Constructors

WxAnchorStyle({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? scale, double? opacity, ShapeBorder? overlayShape, Color? overlayColor, double? overlayOpacity, Size? overlayExtent, Color? textColor, TextStyle? textStyle, TextAlign? textAlign, Color? iconColor, double? iconOpacity, double? iconSize})
Create a raw anchor style.
const
WxAnchorStyle.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})
Create an anchor style with circle shape.
WxAnchorStyle.from(WxAnchorStyle? other)
Create a WxAnchorStyle from another style
WxAnchorStyle.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})
Create an anchor style with rectangle shape.

Properties

hashCode int
The hash code for this object.
no setteroverride
iconColor Color?
Color to be used for the icon's inside the anchor.
final
iconOpacity double?
Opacity to be apply to iconColor.
final
iconSize double?
The size of the icon's inside the anchor, in logical pixels.
final
margin EdgeInsetsGeometry?
Empty space to surround the outside anchor.
final
opacity double?
The child opacity of the anchor when pressed, hovered over, or focused.
final
overlayColor Color?
The overlay color of the anchor when pressed, hovered over, or focused.
final
overlayExtent Size?
The extent of the overlay.
final
overlayOpacity double?
The overlay opacity of the anchor when pressed, hovered over, or focused.
final
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.
final
padding EdgeInsetsGeometry?
The padding between the contents of the anchor and the outside anchor.
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.
final
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.
final
textColor Color?
The text color to be applied to child.
final
textStyle TextStyle?
The style to be applied to the anchor's child.
final

Methods

copyWith({EdgeInsetsGeometry? margin, EdgeInsetsGeometry? padding, double? scale, double? opacity, ShapeBorder? overlayShape, Color? overlayColor, double? overlayOpacity, Size? overlayExtent, Color? textColor, TextStyle? textStyle, TextAlign? textAlign, Color? iconColor, double? iconOpacity, double? iconSize}) WxAnchorStyle
Creates a copy of this WxAnchorStyle but with the given fields replaced with the new values.
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
override
merge(WxAnchorStyle? other) WxAnchorStyle
Creates a copy of this WxAnchorStyle 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(WxAnchorStyle? a, WxAnchorStyle? b, double t) WxAnchorStyle?
Linearly interpolate between two WxAnchorStyle objects.