copyWith method

SearchViewThemeData copyWith(
  1. {Color? backgroundColor,
  2. double? elevation,
  3. Color? surfaceTintColor,
  4. BorderSide? side,
  5. OutlinedBorder? shape,
  6. TextStyle? headerTextStyle,
  7. TextStyle? headerHintStyle,
  8. BoxConstraints? constraints,
  9. 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,
  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,
    headerTextStyle: headerTextStyle ?? this.headerTextStyle,
    headerHintStyle: headerHintStyle ?? this.headerHintStyle,
    constraints: constraints ?? this.constraints,
    dividerColor: dividerColor ?? this.dividerColor,
  );
}