copyWith method
- WidgetStateProperty<
double?> ? elevation, - WidgetStateProperty<
Color?> ? backgroundColor, - WidgetStateProperty<
Color?> ? shadowColor, - WidgetStateProperty<
Color?> ? surfaceTintColor, - WidgetStateProperty<
Color?> ? overlayColor, - WidgetStateProperty<
BorderSide?> ? side, - WidgetStateProperty<
OutlinedBorder?> ? shape, - WidgetStateProperty<
EdgeInsetsGeometry?> ? padding, - WidgetStateProperty<
TextStyle?> ? textStyle, - WidgetStateProperty<
TextStyle?> ? hintStyle, - BoxConstraints? constraints,
- TextCapitalization? textCapitalization,
Creates a copy of this object but with the given fields replaced with the new values.
Implementation
SearchBarThemeData copyWith({
WidgetStateProperty<double?>? elevation,
WidgetStateProperty<Color?>? backgroundColor,
WidgetStateProperty<Color?>? shadowColor,
WidgetStateProperty<Color?>? surfaceTintColor,
WidgetStateProperty<Color?>? overlayColor,
WidgetStateProperty<BorderSide?>? side,
WidgetStateProperty<OutlinedBorder?>? shape,
WidgetStateProperty<EdgeInsetsGeometry?>? padding,
WidgetStateProperty<TextStyle?>? textStyle,
WidgetStateProperty<TextStyle?>? hintStyle,
BoxConstraints? constraints,
TextCapitalization? textCapitalization,
}) {
return SearchBarThemeData(
elevation: elevation ?? this.elevation,
backgroundColor: backgroundColor ?? this.backgroundColor,
shadowColor: shadowColor ?? this.shadowColor,
surfaceTintColor: surfaceTintColor ?? this.surfaceTintColor,
overlayColor: overlayColor ?? this.overlayColor,
side: side ?? this.side,
shape: shape ?? this.shape,
padding: padding ?? this.padding,
textStyle: textStyle ?? this.textStyle,
hintStyle: hintStyle ?? this.hintStyle,
constraints: constraints ?? this.constraints,
textCapitalization: textCapitalization ?? this.textCapitalization,
);
}