copyWith method
Copies this Activity to a new instance.
Implementation
Activity copyWith({
String? id,
String? actor,
String? verb,
String? object,
String? foreignId,
String? target,
DateTime? time,
String? origin,
List<FeedId>? to,
double? score,
Map<String, Object>? analytics,
Map<String, Object>? extraContext,
Map<String, Object>? extraData,
}) =>
Activity(
id: id ?? this.id,
actor: actor ?? this.actor,
verb: verb ?? this.verb,
object: object ?? this.object,
foreignId: foreignId ?? this.foreignId,
target: target ?? this.target,
time: time ?? this.time,
origin: origin ?? this.origin,
to: to ?? this.to,
score: score ?? this.score,
analytics: analytics ?? this.analytics,
extraContext: extraContext ?? this.extraContext,
extraData: extraData ?? this.extraData,
);