copyWith method

AntdTapOptions copyWith({
  1. HitTestBehavior? behavior,
  2. double? touchSlop,
  3. int? doubleTapTimeout,
  4. int? longPressTimeout,
  5. bool? alwaysTriggerTap,
  6. bool? allowOffset,
  7. bool? disabled,
  8. Duration? throttle,
  9. Duration? debounce,
  10. Duration? feedbackDuration,
  11. AntdHapticFeedback? hapticFeedback,
  12. bool? alwaysReceiveTap,
})

Implementation

AntdTapOptions copyWith(
    {HitTestBehavior? behavior,
    double? touchSlop,
    int? doubleTapTimeout,
    int? longPressTimeout,
    bool? alwaysTriggerTap,
    bool? allowOffset,
    bool? disabled,
    Duration? throttle,
    Duration? debounce,
    Duration? feedbackDuration,
    AntdHapticFeedback? hapticFeedback,
    bool? alwaysReceiveTap}) {
  return AntdTapOptions(
      behavior: behavior ?? this.behavior,
      touchSlop: touchSlop ?? this.touchSlop,
      doubleTapTimeout: doubleTapTimeout ?? this.doubleTapTimeout,
      longPressTimeout: longPressTimeout ?? this.longPressTimeout,
      alwaysTriggerTap: alwaysTriggerTap ?? this.alwaysTriggerTap,
      allowOffset: allowOffset ?? this.allowOffset,
      disabled: disabled ?? this.disabled,
      throttle: throttle ?? this.throttle,
      debounce: debounce ?? this.debounce,
      feedbackDuration: feedbackDuration ?? this.feedbackDuration,
      hapticFeedback: hapticFeedback ?? this.hapticFeedback,
      alwaysReceiveTap: alwaysReceiveTap ?? this.alwaysReceiveTap);
}