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