copyWith method
- Color? backgroundColor,
- double? elevation,
- Color? surfaceTintColor,
- BorderSide? side,
- OutlinedBorder? shape,
- double? headerHeight,
- TextStyle? headerTextStyle,
- TextStyle? headerHintStyle,
- BoxConstraints? constraints,
- Color? dividerColor,
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
SearchViewThemeData copyWith({
Color? backgroundColor,
double? elevation,
Color? surfaceTintColor,
BorderSide? side,
OutlinedBorder? shape,
double? headerHeight,
TextStyle? headerTextStyle,
TextStyle? headerHintStyle,
BoxConstraints? constraints,
Color? dividerColor,
}) {
return SearchViewThemeData(
backgroundColor: backgroundColor ?? this.backgroundColor,
elevation: elevation ?? this.elevation,
surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
side: side ?? this.side,
shape: shape ?? this.shape,
headerHeight: headerHeight ?? this.headerHeight,
headerTextStyle: headerTextStyle ?? this.headerTextStyle,
headerHintStyle: headerHintStyle ?? this.headerHintStyle,
constraints: constraints ?? this.constraints,
dividerColor: dividerColor ?? this.dividerColor,
);
}