pairDevice method

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

Implementation

@override
Future<bool> pairDevice() async {
  try {
    var connected = await methodChannel.invokeMethod<bool>('pairDevice');
    return connected!;
  } catch (e) {
    return false;
  }
}