copyWith method
ColorPickerCopyPasteBehavior
copyWith({
- bool? ctrlC,
- bool? ctrlV,
- bool? autoFocus,
- bool? copyButton,
- bool? pasteButton,
- IconData? copyIcon,
- IconData? pasteIcon,
- String? copyTooltip,
- String? pasteTooltip,
- ColorPickerCopyFormat? copyFormat,
- bool? longPressMenu,
- bool? secondaryMenu,
- bool? secondaryOnDesktopLongOnDevice,
- bool? secondaryOnDesktopLongOnDeviceAndWeb,
- bool? editFieldCopyButton,
- bool? snackBarParseError,
- String? snackBarMessage,
- Duration? snackBarDuration,
- bool? feedbackParseError,
- bool? parseShortHexCode,
- bool? editUsesParsedPaste,
Copy the object with one or more provided properties changed.
Implementation
ColorPickerCopyPasteBehavior copyWith({
bool? ctrlC,
bool? ctrlV,
bool? autoFocus,
bool? copyButton,
bool? pasteButton,
IconData? copyIcon,
IconData? pasteIcon,
String? copyTooltip,
String? pasteTooltip,
ColorPickerCopyFormat? copyFormat,
bool? longPressMenu,
bool? secondaryMenu,
bool? secondaryOnDesktopLongOnDevice,
bool? secondaryOnDesktopLongOnDeviceAndWeb,
bool? editFieldCopyButton,
IconThemeData? menuIconThemeData,
PopupMenuThemeData? menuThemeData,
double? menuWidth,
double? menuItemHeight,
bool? snackBarParseError,
String? snackBarMessage,
Duration? snackBarDuration,
bool? feedbackParseError,
bool? parseShortHexCode,
bool? editUsesParsedPaste,
}) {
return ColorPickerCopyPasteBehavior(
ctrlC: ctrlC ?? this.ctrlC,
ctrlV: ctrlV ?? this.ctrlV,
autoFocus: autoFocus ?? this.autoFocus,
copyButton: copyButton ?? this.copyButton,
pasteButton: pasteButton ?? this.pasteButton,
copyIcon: copyIcon ?? this.copyIcon,
pasteIcon: pasteIcon ?? this.pasteIcon,
copyTooltip: copyTooltip ?? this.copyTooltip,
pasteTooltip: pasteTooltip ?? this.pasteTooltip,
copyFormat: copyFormat ?? this.copyFormat,
longPressMenu: longPressMenu ?? this.longPressMenu,
secondaryMenu: secondaryMenu ?? this.secondaryMenu,
secondaryOnDesktopLongOnDevice:
secondaryOnDesktopLongOnDevice ?? this.secondaryOnDesktopLongOnDevice,
secondaryOnDesktopLongOnDeviceAndWeb:
secondaryOnDesktopLongOnDeviceAndWeb ??
this.secondaryOnDesktopLongOnDeviceAndWeb,
editFieldCopyButton: editFieldCopyButton ?? this.editFieldCopyButton,
menuIconThemeData: menuIconThemeData ?? this.menuIconThemeData,
menuThemeData: menuThemeData ?? this.menuThemeData,
menuWidth: menuWidth ?? this.menuWidth,
menuItemHeight: menuItemHeight ?? this.menuItemHeight,
snackBarParseError: snackBarParseError ?? this.snackBarParseError,
snackBarMessage: snackBarMessage ?? this.snackBarMessage,
snackBarDuration: snackBarDuration ?? this.snackBarDuration,
feedbackParseError: feedbackParseError ?? this.feedbackParseError,
parseShortHexCode: parseShortHexCode ?? this.parseShortHexCode,
editUsesParsedPaste: editUsesParsedPaste ?? this.editUsesParsedPaste,
);
}