copyWith method
Creates a copy of this config with the given fields replaced.
Implementation
OverlayConfig copyWith({
bool? autoShow,
int? autoHideDuration,
bool? enableVibration,
String? bubbleColor,
double? bubbleSize,
double? bubbleOpacity,
bool? enableSpellCheck,
bool? enableGrammarCheck,
int? initialX,
int? initialY,
}) {
return OverlayConfig(
autoShow: autoShow ?? this.autoShow,
autoHideDuration: autoHideDuration ?? this.autoHideDuration,
enableVibration: enableVibration ?? this.enableVibration,
bubbleColor: bubbleColor ?? this.bubbleColor,
bubbleSize: bubbleSize ?? this.bubbleSize,
bubbleOpacity: bubbleOpacity ?? this.bubbleOpacity,
enableSpellCheck: enableSpellCheck ?? this.enableSpellCheck,
enableGrammarCheck: enableGrammarCheck ?? this.enableGrammarCheck,
initialX: initialX ?? this.initialX,
initialY: initialY ?? this.initialY,
);
}