copyWith method

  1. @override
Engagement copyWith({
  1. Content? content,
  2. String? label,
  3. int? score,
  4. int? boost,
  5. List<Feature>? features,
  6. FeedId? feedId,
  7. String? location,
  8. int? position,
  9. String? trackedAt,
  10. UserData? userData,
})

Copies this Engagement to a new instance.

Implementation

@override
Engagement copyWith({
  Content? content,
  String? label,
  int? score,
  int? boost,
  List<Feature>? features,
  FeedId? feedId,
  String? location,
  int? position,
  String? trackedAt,
  UserData? userData,
}) =>
    Engagement(
      content: content ?? this.content,
      label: label ?? this.label,
      score: score ?? this.score,
      boost: boost ?? this.boost,
      features: features ?? this.features,
      feedId: feedId ?? this.feedId,
      location: location ?? this.location,
      position: position ?? this.position,
      trackedAt: trackedAt ?? this.trackedAt,
      userData: userData ?? this.userData,
    );