copyWith method

UIProConfig copyWith({
  1. bool? enableHapticFeedback,
  2. Duration? defaultLoadingDelay,
  3. bool? debugShowBorders,
  4. Duration? animationDurationOverride,
  5. bool? respectAccessibility,
})

Creates a copy with the given fields replaced.

Implementation

UIProConfig copyWith({
  bool? enableHapticFeedback,
  Duration? defaultLoadingDelay,
  bool? debugShowBorders,
  Duration? animationDurationOverride,
  bool? respectAccessibility,
}) {
  return UIProConfig(
    enableHapticFeedback: enableHapticFeedback ?? this.enableHapticFeedback,
    defaultLoadingDelay: defaultLoadingDelay ?? this.defaultLoadingDelay,
    debugShowBorders: debugShowBorders ?? this.debugShowBorders,
    animationDurationOverride:
        animationDurationOverride ?? this.animationDurationOverride,
    respectAccessibility: respectAccessibility ?? this.respectAccessibility,
  );
}