PatchbayUiWaitRequest constructor
PatchbayUiWaitRequest({})
Implementation
PatchbayUiWaitRequest({
required this.condition,
required this.timeout,
this.semanticsIdentifier,
this.value,
this.destinationId,
this.revision,
}) {
if (timeout <= Duration.zero || timeout > const Duration(minutes: 2)) {
throw ArgumentError.value(
timeout,
'timeout',
'must be greater than zero and at most two minutes',
);
}
if (revision != null && revision! < 0) {
throw ArgumentError.value(revision, 'revision', 'must be non-negative');
}
_validateShape();
}