copyWith method
Badge
copyWith({
- String? label,
- String? message,
- int? labelWidth,
- int? messageWidth,
- 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,
);
}