copyWith method

ColorPickerActionButtons copyWith({
  1. bool? okButton,
  2. bool? closeButton,
  3. IconData? okIcon,
  4. IconData? closeIcon,
  5. bool? closeIsLast,
  6. String? okTooltip,
  7. String? closeTooltip,
  8. bool? closeTooltipIsClose,
  9. IconThemeData? toolIconsThemeData,
  10. VisualDensity? visualDensity,
  11. EdgeInsetsGeometry? padding,
  12. AlignmentGeometry? alignment,
  13. double? splashRadius,
  14. BoxConstraints? constraints,
  15. bool? dialogActionButtons,
  16. bool? dialogActionOnlyOkButton,
  17. ColorPickerActionButtonOrder? dialogActionOrder,
  18. bool? dialogActionIcons,
  19. String? dialogCancelButtonLabel,
  20. ColorPickerActionButtonType? dialogCancelButtonType,
  21. String? dialogOkButtonLabel,
  22. ColorPickerActionButtonType? dialogOkButtonType,
  23. bool? useRootNavigator,
})

Copy the object with one or more provided properties changed.

Implementation

ColorPickerActionButtons copyWith({
  bool? okButton,
  bool? closeButton,
  IconData? okIcon,
  IconData? closeIcon,
  bool? closeIsLast,
  String? okTooltip,
  String? closeTooltip,
  bool? closeTooltipIsClose,
  IconThemeData? toolIconsThemeData,
  VisualDensity? visualDensity,
  EdgeInsetsGeometry? padding,
  AlignmentGeometry? alignment,
  double? splashRadius,
  BoxConstraints? constraints,
  bool? dialogActionButtons,
  bool? dialogActionOnlyOkButton,
  ColorPickerActionButtonOrder? dialogActionOrder,
  bool? dialogActionIcons,
  String? dialogCancelButtonLabel,
  ColorPickerActionButtonType? dialogCancelButtonType,
  String? dialogOkButtonLabel,
  ColorPickerActionButtonType? dialogOkButtonType,
  bool? useRootNavigator,
}) {
  return ColorPickerActionButtons(
    okButton: okButton ?? this.okButton,
    closeButton: closeButton ?? this.closeButton,
    okIcon: okIcon ?? this.okIcon,
    closeIcon: closeIcon ?? this.closeIcon,
    closeIsLast: closeIsLast ?? this.closeIsLast,
    okTooltip: okTooltip ?? this.okTooltip,
    closeTooltip: closeTooltip ?? this.closeTooltip,
    closeTooltipIsClose: closeTooltipIsClose ?? this.closeTooltipIsClose,
    toolIconsThemeData: toolIconsThemeData ?? this.toolIconsThemeData,
    visualDensity: visualDensity ?? this.visualDensity,
    padding: padding ?? this.padding,
    alignment: alignment ?? this.alignment,
    splashRadius: splashRadius ?? this.splashRadius,
    constraints: constraints ?? this.constraints,
    dialogActionButtons: dialogActionButtons ?? this.dialogActionButtons,
    dialogActionOnlyOkButton:
        dialogActionOnlyOkButton ?? this.dialogActionOnlyOkButton,
    dialogActionOrder: dialogActionOrder ?? this.dialogActionOrder,
    dialogActionIcons: dialogActionIcons ?? this.dialogActionIcons,
    dialogCancelButtonLabel:
        dialogCancelButtonLabel ?? this.dialogCancelButtonLabel,
    dialogCancelButtonType:
        dialogCancelButtonType ?? this.dialogCancelButtonType,
    dialogOkButtonLabel: dialogOkButtonLabel ?? this.dialogOkButtonLabel,
    dialogOkButtonType: dialogOkButtonType ?? this.dialogOkButtonType,
    useRootNavigator: useRootNavigator ?? this.useRootNavigator,
  );
}