copyWith method

NotificationButton copyWith({
  1. String? id,
  2. String? text,
  3. Color? textColor,
})

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,
    );