getGroups method

  1. @override
Future<Iterable<Group>> getGroups()
override

Updates the contact if it has a valid identifier

Implementation

@override
Future<Iterable<Group>> getGroups() async {
  Iterable groups = await (channel.invokeMethod('getGroups', {})
      as FutureOr<Iterable<dynamic>>);
  return groups.map((g) => Group.fromMap(g));
}