copyWith method

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