copyWith method

MacosPopupButtonThemeData copyWith({
  1. Color? highlightColor,
  2. Color? backgroundColor,
  3. Color? popupColor,
})

Copies this MacosPopupButtonThemeData into another.

Implementation

MacosPopupButtonThemeData copyWith({
  Color? highlightColor,
  Color? backgroundColor,
  Color? popupColor,
}) {
  return MacosPopupButtonThemeData(
    highlightColor: highlightColor ?? this.highlightColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    popupColor: popupColor ?? this.popupColor,
  );
}