getUsbConnectedStatus method
A stream that emits the current USB connection status.
Emits true if the device is currently connected via USB (or plugged into
power on iOS), and false otherwise. The stream emits the initial state
immediately upon subscription and updates continuously.
Implementation
Stream<bool?> getUsbConnectedStatus() {
return DeviceSecurityPlatform.instance.getUsbConnectedStatus();
}