remove method
Removes a sensor from the collection.
The sensor is specified by a pointer to the ISensor interface to be removed.
Throws a WindowsException on failure.
To learn more, see learn.microsoft.com/windows/win32/api/sensorsapi/nf-sensorsapi-isensorcollection-remove.
Implementation
@pragma('vm:prefer-inline')
void remove(ISensor? pSensor) {
final hr$ = HRESULT(_RemoveFn(ptr, pSensor?.ptr ?? nullptr));
if (hr$.isError) throw WindowsException(hr$);
}