copyWith method
ChoiceChipThemeData
copyWith({
- TextStyle? selectedTextStyle,
- TextStyle? selectedChipTextStyle,
- TextStyle? textStyle,
- Color? selectedTextBackgroundColor,
- Color? selectedBackgroundColor,
- Color? backgroundColor,
- VisualDensity? visualDensity,
- double? elevation,
- BorderSide? side,
- BorderSide? selectedSide,
- OutlinedBorder? shape,
- OutlinedBorder? selectedShape,
- Color? shadowColor,
- Color? selectedShadowColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? labelPadding,
- EdgeInsetsGeometry? margin,
Creates a copy of this theme, but with the given fields replaced with the new values.
Implementation
ChoiceChipThemeData copyWith({
TextStyle? selectedTextStyle,
TextStyle? selectedChipTextStyle,
TextStyle? textStyle,
Color? selectedTextBackgroundColor,
Color? selectedBackgroundColor,
Color? backgroundColor,
VisualDensity? visualDensity,
double? elevation,
BorderSide? side,
BorderSide? selectedSide,
OutlinedBorder? shape,
OutlinedBorder? selectedShape,
Color? shadowColor,
Color? selectedShadowColor,
EdgeInsetsGeometry? padding,
EdgeInsetsGeometry? labelPadding,
EdgeInsetsGeometry? margin,
}) {
return ChoiceChipThemeData(
selectedTextStyle: selectedTextStyle ?? this.selectedTextStyle,
textStyle: textStyle ?? textStyle,
selectedBackgroundColor:
selectedBackgroundColor ?? this.selectedBackgroundColor,
backgroundColor: backgroundColor ?? this.backgroundColor,
visualDensity: visualDensity ?? this.visualDensity,
elevation: elevation ?? this.elevation,
side: side ?? this.side,
selectedSide: selectedSide ?? this.selectedSide,
shape: shape ?? this.shape,
selectedShape: selectedShape ?? this.selectedShape,
shadowColor: shadowColor ?? this.shadowColor,
selectedShadowColor: selectedShadowColor ?? this.selectedShadowColor,
padding: padding ?? this.padding,
labelPadding: labelPadding ?? this.labelPadding,
margin: margin ?? this.margin,
);
}