copyWith method

ChoiceChipThemeData copyWith({
  1. TextStyle? selectedTextStyle,
  2. TextStyle? selectedChipTextStyle,
  3. TextStyle? textStyle,
  4. Color? selectedTextBackgroundColor,
  5. Color? selectedBackgroundColor,
  6. Color? backgroundColor,
  7. VisualDensity? visualDensity,
  8. double? elevation,
  9. BorderSide? side,
  10. BorderSide? selectedSide,
  11. OutlinedBorder? shape,
  12. OutlinedBorder? selectedShape,
  13. Color? shadowColor,
  14. Color? selectedShadowColor,
  15. EdgeInsetsGeometry? padding,
  16. EdgeInsetsGeometry? labelPadding,
  17. 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,
  );
}