copyWith method

Badge copyWith({
  1. String? label,
  2. String? message,
  3. int? labelWidth,
  4. int? messageWidth,
  5. BadgeTheme? theme,
})

Implementation

Badge copyWith({
  String? label,
  String? message,
  int? labelWidth,
  int? messageWidth,
  BadgeTheme? theme,
}) {
  return Badge(
    label: label ?? this.label,
    message: message ?? this.message,
    labelWidth: labelWidth ?? this.labelWidth,
    messageWidth: messageWidth ?? this.messageWidth,
    theme: theme ?? this.theme,
  );
}