syncContacts method

  1. @override
Future<bool?> syncContacts(
  1. bool isfirsttime
)
override

Implementation

@override
Future<bool?> syncContacts(bool isfirsttime) async {
  bool? res;
  try {
    res = await mirrorFlyMethodChannel
        .invokeMethod<bool>('syncContacts', {"is_first_time": isfirsttime});
    debugPrint('syncContacts $res');
    return res;
  } on PlatformException catch (e) {
    debugPrint("Platform Exception ===> $e");
    rethrow;
  } on Exception catch (error) {
    debugPrint("Exception ==> $error");
    rethrow;
  }
}