validate method
void
validate()
Implementation
void validate() {
MiniProgramBluetooth.uuids(allowedServices);
if (maxScanMs < 500 ||
maxScanMs > MiniProgramBluetooth.maxScanMs ||
maxDevices < 1 ||
maxDevices > MiniProgramBluetooth.maxDevices ||
maxValueBytes < 1 ||
maxValueBytes > MiniProgramBluetooth.maxValueBytes) {
throw const FormatException('Invalid accepted BLE limits.');
}
}