copyWith method

NotificationAuditData copyWith({
  1. int? id,
  2. DateTime? happenedAt,
  3. String? checkSum,
  4. String? summary,
  5. String? packageName,
  6. NotificationAuditType? type,
  7. Value<String?> title = const Value.absent(),
  8. Value<String?> key = const Value.absent(),
})

Implementation

NotificationAuditData copyWith(
        {int? id,
        DateTime? happenedAt,
        String? checkSum,
        String? summary,
        String? packageName,
        NotificationAuditType? type,
        Value<String?> title = const Value.absent(),
        Value<String?> key = const Value.absent()}) =>
    NotificationAuditData(
      id: id ?? this.id,
      happenedAt: happenedAt ?? this.happenedAt,
      checkSum: checkSum ?? this.checkSum,
      summary: summary ?? this.summary,
      packageName: packageName ?? this.packageName,
      type: type ?? this.type,
      title: title.present ? title.value : this.title,
      key: key.present ? key.value : this.key,
    );