copyWith method

ColorPickerCopyPasteBehavior copyWith({
  1. bool? ctrlC,
  2. bool? ctrlV,
  3. bool? autoFocus,
  4. bool? copyButton,
  5. bool? pasteButton,
  6. IconData? copyIcon,
  7. IconData? pasteIcon,
  8. String? copyTooltip,
  9. String? pasteTooltip,
  10. ColorPickerCopyFormat? copyFormat,
  11. bool? longPressMenu,
  12. bool? secondaryMenu,
  13. bool? secondaryOnDesktopLongOnDevice,
  14. bool? secondaryOnDesktopLongOnDeviceAndWeb,
  15. bool? editFieldCopyButton,
  16. IconThemeData? menuIconThemeData,
  17. PopupMenuThemeData? menuThemeData,
  18. double? menuWidth,
  19. double? menuItemHeight,
  20. bool? snackBarParseError,
  21. String? snackBarMessage,
  22. Duration? snackBarDuration,
  23. bool? feedbackParseError,
  24. bool? parseShortHexCode,
  25. 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,
  );
}