setOnDisconnectCallback method
Set functions to get a callback when the paired device is disconnect
Implementation
@override
Future<void> setOnDisconnectCallback(Function(dynamic) onDisconnect) {
return methodChannel
.invokeMethod<bool>('setOnDisconnectCallback', onDisconnect)
.then<void>((dynamic result) => result);
}