copyWith method

UiTargetSnapshot copyWith({
  1. String? target,
  2. Map<String, Object?>? data,
  3. String? sourceHash,
  4. DateTime? fetchedAt,
  5. String? source,
})

Implementation

UiTargetSnapshot copyWith({
  String? target,
  Map<String, Object?>? data,
  String? sourceHash,
  DateTime? fetchedAt,
  String? source,
}) {
  return UiTargetSnapshot(
    target: target ?? this.target,
    data: data ?? this.data,
    sourceHash: sourceHash ?? this.sourceHash,
    fetchedAt: fetchedAt ?? this.fetchedAt,
    source: source ?? this.source,
  );
}