copyWith method

Activity copyWith({
  1. String? id,
  2. String? actor,
  3. String? verb,
  4. String? object,
  5. String? foreignId,
  6. String? target,
  7. DateTime? time,
  8. String? origin,
  9. List<FeedId>? to,
  10. double? score,
  11. Map<String, Object>? analytics,
  12. Map<String, Object>? extraContext,
  13. Map<String, Object>? extraData,
})

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,
    );