DropdownMenuThemeData constructor

const DropdownMenuThemeData({
  1. TextStyle? textStyle,
  2. Object? inputDecorationTheme,
  3. MenuStyle? menuStyle,
  4. Color? disabledColor,
})

Creates a DropdownMenuThemeData that can be used to override default properties in a DropdownMenuTheme widget.

Implementation

const DropdownMenuThemeData({
  this.textStyle,
  // TODO(bleroux): Clean this up once `InputDecorationTheme` is fully normalized.
  Object? inputDecorationTheme,
  this.menuStyle,
  this.disabledColor,
}) : assert(
       inputDecorationTheme == null ||
           (inputDecorationTheme is InputDecorationTheme ||
               inputDecorationTheme is InputDecorationThemeData),
     ),
     _inputDecorationTheme = inputDecorationTheme;