DetectionSpeed.fromRawValue constructor
DetectionSpeed.fromRawValue(
- int value
Implementation
factory DetectionSpeed.fromRawValue(int value) {
switch (value) {
case 0:
return DetectionSpeed.noDuplicates;
case 1:
return DetectionSpeed.normal;
case 2:
return DetectionSpeed.unrestricted;
default:
throw ArgumentError.value(value, 'value', 'Invalid raw value.');
}
}