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});
    LogMessage.d("syncContacts", res);
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}