copyWith method

HistoryMetadata copyWith({
  1. String? type,
  2. String? description,
  3. String? descriptionKey,
  4. String? activityDescription,
  5. String? activityDescriptionKey,
  6. String? emailDescription,
  7. String? emailDescriptionKey,
  8. Map<String, dynamic>? actor,
  9. Map<String, dynamic>? generator,
  10. Map<String, dynamic>? cause,
  11. Map<String, dynamic>? extraData,
})

Implementation

HistoryMetadata copyWith(
    {String? type,
    String? description,
    String? descriptionKey,
    String? activityDescription,
    String? activityDescriptionKey,
    String? emailDescription,
    String? emailDescriptionKey,
    Map<String, dynamic>? actor,
    Map<String, dynamic>? generator,
    Map<String, dynamic>? cause,
    Map<String, dynamic>? extraData}) {
  return HistoryMetadata(
    type: type ?? this.type,
    description: description ?? this.description,
    descriptionKey: descriptionKey ?? this.descriptionKey,
    activityDescription: activityDescription ?? this.activityDescription,
    activityDescriptionKey:
        activityDescriptionKey ?? this.activityDescriptionKey,
    emailDescription: emailDescription ?? this.emailDescription,
    emailDescriptionKey: emailDescriptionKey ?? this.emailDescriptionKey,
    actor: actor ?? this.actor,
    generator: generator ?? this.generator,
    cause: cause ?? this.cause,
    extraData: extraData ?? this.extraData,
  );
}