disconnect method
Future<void>
disconnect({
- Duration? timeout,
- @Deprecated("Ignored: disconnect bypasses the command queue and cancels unsent " "commands for the device instead of queueing behind them. Remove the " "argument; it is scheduled for removal in 4.0.0.") String? queueId,
Disconnects from the device.
queueId is deprecated and ignored: disconnect bypasses the command queue
and cancels unsent commands for the device.
Implementation
Future<void> disconnect({
Duration? timeout,
@Deprecated(
"Ignored: disconnect bypasses the command queue and cancels unsent "
"commands for the device instead of queueing behind them. Remove the "
"argument; it is scheduled for removal in 4.0.0.",
)
String? queueId,
}) =>
UniversalBle.disconnect(deviceId, timeout: timeout);