copyWith method

WxAnchorStyle copyWith({
  1. EdgeInsetsGeometry? margin,
  2. EdgeInsetsGeometry? padding,
  3. double? scale,
  4. double? opacity,
  5. ShapeBorder? overlayShape,
  6. Color? overlayColor,
  7. double? overlayOpacity,
  8. Size? overlayExtent,
  9. Color? textColor,
  10. TextStyle? textStyle,
  11. TextAlign? textAlign,
  12. Color? iconColor,
  13. double? iconOpacity,
  14. 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,
  );
}