setOnConnectCallback method

  1. @override
Future<void> setOnConnectCallback(
  1. dynamic onConnect(
    1. dynamic
    )
)
override

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);
}