copyWith method
AdeptDropDownTheme
copyWith({
- bool? isSearch,
- BoxDecoration? boxDecoration,
- Widget? suffixWidget,
- CardThemeData? cardTheme,
- AdeptTextFieldTheme? searchBoxTheme,
- TextStyle? itemTextStyle,
- bool? isClose,
- double? height,
- TextStyle? labelTextStyle,
- TextStyle? hintTextStyle,
- TextStyle? valueTextStyle,
- EdgeInsets? labelPadding,
- EdgeInsets? fieldPadding,
- Color? multiSelectItemBgColor,
Creates a copy of this theme but with the given fields replaced with the new values.
Implementation
AdeptDropDownTheme copyWith({
/// isSearch for search option visible or invisible in dropdown
bool? isSearch,
/// use for boxDecoration
BoxDecoration? boxDecoration,
/// use for suffixWidget
Widget? suffixWidget,
/// use drop down decoration
CardThemeData? cardTheme,
/// Drop down search box theme
AdeptTextFieldTheme? searchBoxTheme,
/// Drop Down Text Style
TextStyle? itemTextStyle,
/// Is Close Visible
bool? isClose,
///
double? height,
// From base class: TextThemeMdl
TextStyle? labelTextStyle,
TextStyle? hintTextStyle,
TextStyle? valueTextStyle,
EdgeInsets? labelPadding,
EdgeInsets? fieldPadding,
Color? multiSelectItemBgColor,
}) {
return AdeptDropDownTheme(
labelTextStyle: labelTextStyle ?? this.labelTextStyle,
hintTextStyle: hintTextStyle ?? this.hintTextStyle,
valueTextStyle: valueTextStyle ?? this.valueTextStyle,
labelPadding: labelPadding ?? this.labelPadding,
fieldPadding: fieldPadding ?? this.fieldPadding,
isSearch: isSearch ?? this.isSearch,
boxDecoration: boxDecoration ?? this.boxDecoration,
suffixWidget: suffixWidget ?? this.suffixWidget,
cardTheme: cardTheme ?? this.cardTheme,
searchBoxTheme: searchBoxTheme ?? this.searchBoxTheme,
itemTextStyle: itemTextStyle ?? this.itemTextStyle,
height: height ?? this.height,
isClose: isClose ?? this.isClose,
multiSelectItemBgColor:
multiSelectItemBgColor ?? this.multiSelectItemBgColor,
);
}