setOnDisconnectCallback method

  1. @override
Future<void> setOnDisconnectCallback(
  1. dynamic onDisconnect(
    1. dynamic
    )
)
override

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