copyWith method

  1. @override
Impression copyWith({
  1. List<Content>? contentList,
  2. List<Feature>? features,
  3. FeedId? feedId,
  4. String? location,
  5. int? position,
  6. String? trackedAt,
  7. UserData? userData,
})

Copies this Impression to a new instance.

Implementation

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