copyWith method
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,
);
}