copyWith method
WxAnchorStyle
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,
Creates a copy of this WxAnchorStyle but with the given fields replaced with the new values.
Implementation
WxAnchorStyle 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,
}) {
return WxAnchorStyle(
margin: margin ?? this.margin,
padding: padding ?? this.padding,
scale: scale ?? this.scale,
opacity: opacity ?? this.opacity,
overlayShape: overlayShape ?? this.overlayShape,
overlayColor: overlayColor ?? this.overlayColor,
overlayOpacity: overlayOpacity ?? this.overlayOpacity,
overlayExtent: overlayExtent ?? this.overlayExtent,
textColor: textColor ?? this.textColor,
textStyle: textStyle ?? this.textStyle,
textAlign: textAlign ?? this.textAlign,
iconColor: iconColor ?? this.iconColor,
iconOpacity: iconOpacity ?? this.iconOpacity,
iconSize: iconSize ?? this.iconSize,
);
}