fromValue static method
- int value
Implementation
static BurtRsStatus fromValue(int value) => switch (value) {
0 => BurtRsStatus_ok,
1 => BurtRsStatus_no_device,
2 => BurtRsStatus_too_many_devices,
3 => BurtRsStatus_resolution_unknown,
4 => BurtRsStatus_scale_unknown,
_ => throw ArgumentError("Unknown value for BurtRsStatus: $value"),
};