copyWith method

DropdownMenuThemeData copyWith(
  1. {TextStyle? textStyle,
  2. InputDecorationTheme? inputDecorationTheme,
  3. MenuStyle? menuStyle}
)

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

Implementation

DropdownMenuThemeData copyWith({
  TextStyle? textStyle,
  InputDecorationTheme? inputDecorationTheme,
  MenuStyle? menuStyle,
}) {
  return DropdownMenuThemeData(
    textStyle: textStyle ?? this.textStyle,
    inputDecorationTheme: inputDecorationTheme ?? this.inputDecorationTheme,
    menuStyle: menuStyle ?? this.menuStyle,
  );
}