copyWith method

UiViewControllerState copyWith({
  1. String? target,
  2. UiTargetSnapshot? snapshot,
  3. bool snapshotSet = false,
  4. ViewStatus? status,
  5. DeviceFrame? frame,
  6. ViewportState? viewport,
  7. List<ValidationIssue>? issues,
  8. DateTime? lastUpdated,
  9. bool lastUpdatedSet = false,
})

Implementation

UiViewControllerState copyWith({
  String? target,
  UiTargetSnapshot? snapshot,
  bool snapshotSet = false,
  ViewStatus? status,
  DeviceFrame? frame,
  ViewportState? viewport,
  List<ValidationIssue>? issues,
  DateTime? lastUpdated,
  bool lastUpdatedSet = false,
}) {
  return UiViewControllerState(
    target: target ?? this.target,
    snapshot: snapshotSet ? snapshot : this.snapshot,
    status: status ?? this.status,
    frame: frame ?? this.frame,
    viewport: viewport ?? this.viewport,
    issues: issues ?? this.issues,
    lastUpdated: lastUpdatedSet ? lastUpdated : this.lastUpdated,
  );
}