copyWith method
WxDrivenAnchorStyle
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,
override
Creates a copy of this WxAnchorStyle but with the given fields replaced with the new values.
Implementation
@override
WxDrivenAnchorStyle copyWith({
margin,
padding,
scale,
opacity,
overlayColor,
overlayOpacity,
overlayShape,
overlayExtent,
textColor,
textStyle,
textAlign,
iconColor,
iconOpacity,
iconSize,
WxAnchorStyle? focusedStyle,
WxAnchorStyle? hoveredStyle,
WxAnchorStyle? pressedStyle,
WxAnchorStyle? disabledStyle,
bool? inherits,
}) {
final ancestor = super.copyWith(
margin: margin,
padding: padding,
scale: scale,
opacity: opacity,
overlayColor: overlayColor,
overlayOpacity: overlayOpacity,
overlayShape: overlayShape,
overlayExtent: overlayExtent,
textColor: textColor,
textStyle: textStyle,
textAlign: textAlign,
iconColor: iconColor,
iconOpacity: iconOpacity,
iconSize: iconSize,
);
return WxDrivenAnchorStyle.fromAncestor(
ancestor,
inherits: inherits ?? this.inherits,
focusedStyle: this.focusedStyle?.merge(focusedStyle) ?? focusedStyle,
hoveredStyle: this.hoveredStyle?.merge(hoveredStyle) ?? hoveredStyle,
pressedStyle: this.pressedStyle?.merge(pressedStyle) ?? pressedStyle,
disabledStyle: this.disabledStyle?.merge(disabledStyle) ?? disabledStyle,
);
}