copyWith method

IconButtonData copyWith({
  1. double? iconSize,
  2. VisualDensity? visualDensity,
  3. EdgeInsetsGeometry? padding,
  4. AlignmentGeometry? alignment,
  5. double? splashRadius,
  6. Color? color,
  7. Color? focusColor,
  8. Color? hoverColor,
  9. Color? highlightColor,
  10. Color? splashColor,
  11. Color? disabledColor,
  12. MouseCursor? mouseCursor,
  13. bool? autofocus,
  14. String? tooltip,
  15. bool? enableFeedback,
  16. BoxConstraints? constraints,
  17. ButtonStyle? style,
  18. bool? isSelected,
  19. Widget? selectedIcon,
})

Implementation

IconButtonData copyWith({
  double? iconSize,
  VisualDensity? visualDensity,
  EdgeInsetsGeometry? padding,
  AlignmentGeometry? alignment,
  double? splashRadius,
  Color? color,
  Color? focusColor,
  Color? hoverColor,
  Color? highlightColor,
  Color? splashColor,
  Color? disabledColor,
  MouseCursor? mouseCursor,
  bool? autofocus,
  String? tooltip,
  bool? enableFeedback,
  BoxConstraints? constraints,
  ButtonStyle? style,
  bool? isSelected,
  Widget? selectedIcon,
}) {
  return IconButtonData(
    iconSize: iconSize ?? this.iconSize,
    visualDensity: visualDensity ?? this.visualDensity,
    padding: padding ?? this.padding,
    alignment: alignment ?? this.alignment,
    splashRadius: splashRadius ?? this.splashRadius,
    color: color ?? this.color,
    focusColor: focusColor ?? this.focusColor,
    hoverColor: hoverColor ?? this.hoverColor,
    highlightColor: highlightColor ?? this.highlightColor,
    splashColor: splashColor ?? this.splashColor,
    disabledColor: disabledColor ?? this.disabledColor,
    mouseCursor: mouseCursor ?? this.mouseCursor,
    autofocus: autofocus ?? this.autofocus,
    tooltip: tooltip ?? this.tooltip,
    enableFeedback: enableFeedback ?? this.enableFeedback,
    constraints: constraints ?? this.constraints,
    style: style ?? this.style,
    isSelected: isSelected ?? this.isSelected,
    selectedIcon: selectedIcon ?? this.selectedIcon,
  );
}