copyWith method

  1. @override
ThemeExtension<TxBadgeThemeData> copyWith({
  1. ShapeBorder? shape,
  2. BadgeThemeData? badgeTheme,
})
override

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

Implementation

@override
ThemeExtension<TxBadgeThemeData> copyWith({
  ShapeBorder? shape,
  BadgeThemeData? badgeTheme,
}) {
  return TxBadgeThemeData(
    shape: shape ?? this.shape,
    badgeTheme: badgeTheme ?? this.badgeTheme,
  );
}