copyWith method

JSNotificationAction copyWith({
  1. String? action,
  2. String? title,
  3. String? icon,
})

Implementation

JSNotificationAction copyWith({String? action, String? title, String? icon}) {
  return JSNotificationAction(
    action: action ?? this.action,
    title: title ?? this.title,
    icon: icon ?? this.icon,
  );
}