copyWith method

MacosPulldownButtonThemeData copyWith({
  1. Color? highlightColor,
  2. Color? backgroundColor,
  3. Color? pulldownColor,
  4. Color? iconColor,
})

Copies this MacosPulldownButtonThemeData into another.

Implementation

MacosPulldownButtonThemeData copyWith({
  Color? highlightColor,
  Color? backgroundColor,
  Color? pulldownColor,
  Color? iconColor,
}) {
  return MacosPulldownButtonThemeData(
    highlightColor: highlightColor ?? this.highlightColor,
    backgroundColor: backgroundColor ?? this.backgroundColor,
    pulldownColor: pulldownColor ?? this.pulldownColor,
    iconColor: iconColor ?? this.iconColor,
  );
}