syncAll method

  1. @override
Future<Map<String, int>> syncAll({
  1. List<String> consentStates = const ['allowed'],
})
override

Implementation

@override
Future<Map<String, int>> syncAll({List<String> consentStates = const ['allowed']}) async {
  final result = await methodChannel.invokeMethod('syncAll', {
    'consentStates': consentStates,
  });
  if (result == null) {
    return {'numGroupsSynced': 0};
  }
  return Map<String, int>.from(result.map((key, value) => MapEntry(key, value as int)));
}