copyWith method

PullDownMenuItemTheme copyWith({
  1. Color? destructiveColor,
  2. double? iconSize,
  3. IconData? checkmark,
  4. FontWeight? checkmarkWeight,
  5. double? checkmarkSize,
  6. TextStyle? textStyle,
  7. TextStyle? iconActionTextStyle,
  8. Color? onHoverColor,
  9. TextStyle? onHoverTextStyle,
})

Creates a copy of this object with the given fields replaced with the new values.

Implementation

PullDownMenuItemTheme copyWith({
  Color? destructiveColor,
  double? iconSize,
  IconData? checkmark,
  FontWeight? checkmarkWeight,
  double? checkmarkSize,
  TextStyle? textStyle,
  TextStyle? iconActionTextStyle,
  Color? onHoverColor,
  TextStyle? onHoverTextStyle,
}) =>
    PullDownMenuItemTheme(
      destructiveColor: destructiveColor ?? this.destructiveColor,
      iconSize: iconSize ?? this.iconSize,
      checkmark: checkmark ?? this.checkmark,
      checkmarkWeight: checkmarkWeight ?? this.checkmarkWeight,
      checkmarkSize: checkmarkSize ?? this.checkmarkSize,
      textStyle: textStyle ?? this.textStyle,
      iconActionTextStyle: iconActionTextStyle ?? this.iconActionTextStyle,
      onHoverColor: onHoverColor ?? this.onHoverColor,
      onHoverTextStyle: onHoverTextStyle ?? this.onHoverTextStyle,
    );