onDisconnect method

  1. @override
Future<bool> onDisconnect()
override

Callback on disconnect.

Is to be overridden in sub-classes and implement device-specific disconnection.

Implementation

@override
Future<bool> onDisconnect() async => await manager?.disconnect() ?? false;