disconnectFromDevice method

  1. @override
Future<void> disconnectFromDevice(
  1. BluetoothPrinter printer
)
override

Disconnects from the given printer.

Implementation

@override
Future<void> disconnectFromDevice(BluetoothPrinter printer) async {
  await methodChannel.invokeMethod<void>(
    'disconnectFromDevice',
    printer.toMap(),
  );
}