copyWith method
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,
})
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,
);
}