copyWith method

  1. @override
WxAnchorThemeData copyWith({
  1. Curve? curve,
  2. Duration? duration,
  3. TargetPlatform? platform,
  4. WxAnchorStyle? style,
  5. bool? overlay,
  6. bool? feedback,
  7. bool? focusable,
  8. bool? disabled,
  9. MouseCursor? mouseCursor,
})
override

Creates a copy of this WxAnchorThemeData but with the given fields replaced with the new values.

Implementation

@override
WxAnchorThemeData copyWith({
  Curve? curve,
  Duration? duration,
  TargetPlatform? platform,
  WxAnchorStyle? style,
  bool? overlay,
  bool? feedback,
  bool? focusable,
  bool? disabled,
  MouseCursor? mouseCursor,
}) {
  return WxAnchorThemeData(
    curve: curve ?? this.curve,
    duration: duration ?? this.duration,
    platform: platform ?? this.platform,
    style: this.style.merge(style),
    overlay: overlay ?? this.overlay,
    feedback: feedback ?? this.feedback,
    focusable: focusable ?? this.focusable,
    disabled: disabled ?? this.disabled,
    mouseCursor: mouseCursor ?? this.mouseCursor,
  );
}