copyWith method
DropdownFieldTheme
copyWith({
- TextStyle? textStyle,
- MaterialStateProperty<
Color?> ? textColor, - InputDecorationTheme? decorationTheme,
- TextOverflow? textOverflow,
- int? maxLines,
- TextStyle? selectedTextStyle,
- int? selectedMaxLines,
- 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,
);
}