copyWith method
UiViewControllerState
copyWith({
- String? target,
- UiTargetSnapshot? snapshot,
- bool snapshotSet = false,
- ViewStatus? status,
- DeviceFrame? frame,
- ViewportState? viewport,
- List<
ValidationIssue> ? issues, - DateTime? lastUpdated,
- 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,
);
}