copyWith method
Creates a copy of the object replaced with new values.
Implementation
NotificationButton copyWith({
String? id,
String? text,
Color? textColor,
}) =>
NotificationButton(
id: id ?? this.id,
text: text ?? this.text,
textColor: textColor ?? this.textColor,
);