copyWith method

DropdownFieldTheme copyWith({
  1. TextStyle? textStyle,
  2. MaterialStateProperty<Color?>? textColor,
  3. InputDecorationTheme? decorationTheme,
  4. TextOverflow? textOverflow,
  5. int? maxLines,
  6. TextStyle? selectedTextStyle,
  7. int? selectedMaxLines,
  8. Widget? moreIcon,
})

Implementation

DropdownFieldTheme copyWith({
  TextStyle? textStyle,
  MaterialStateProperty<Color?>? textColor,
  InputDecorationTheme? decorationTheme,
  TextOverflow? textOverflow,
  int? maxLines,
  TextStyle? selectedTextStyle,
  int? selectedMaxLines,
  Widget? moreIcon,
}) {
  return DropdownFieldTheme(
    textStyle: textStyle ?? this.textStyle,
    textColor: textColor ?? this.textColor,
    decorationTheme: decorationTheme ?? this.decorationTheme,
    textOverflow: textOverflow ?? this.textOverflow,
    maxLines: maxLines ?? this.maxLines,
    selectedTextStyle: selectedTextStyle ?? this.selectedTextStyle,
    selectedMaxLines: selectedMaxLines ?? this.selectedMaxLines,
    moreIcon: moreIcon ?? this.moreIcon,
  );
}