validateTimeout static method
Validate timeout parameter
Implementation
static String? validateTimeout(int? timeout) {
if (timeout != null && timeout > maxTimeoutSeconds) {
return 'Timeout cannot exceed $maxTimeoutSeconds seconds';
}
if (timeout != null && timeout < 1) {
return 'Timeout must be at least 1 second';
}
return null;
}