copyWith method

  1. @override
AppChipTheme copyWith({
  1. ChipThemeData? primary,
  2. ChipThemeData? neutral,
  3. ChipThemeData? destructive,
})
override

Creates a copy of this theme extension with the given fields replaced by the non-null parameter values.

Implementation

@override
AppChipTheme copyWith({
  ChipThemeData? primary,
  ChipThemeData? neutral,
  ChipThemeData? destructive,
}) {
  return AppChipTheme(
    primary: primary ?? this.primary,
    neutral: neutral ?? this.neutral,
    destructive: destructive ?? this.destructive,
  );
}