removeBleDeviceForTest method
Test-only entry point for removeBleDevice that accepts raw guid and
identifierUuid strings instead of a full CaptureHelperDevice.
Delegates to the same internal logic path, bypassing the need for a real CaptureHelperDevice instance in tests.
Implementation
Future<int> removeBleDeviceForTest({
required String guid,
required String identifierUuid,
}) async {
if (Platform.isAndroid) {
final dynamic uuid = await getDeviceUniqueIdentifier(guid: guid);
return _set(
CapturePropertyIds.removeDevice,
CapturePropertyTypes.string,
uuid as String,
);
}
return _set(
CapturePropertyIds.removeDevice,
CapturePropertyTypes.string,
guid,
);
}