getOf method

Future<List<Group>> getOf(
  1. String contactId
)

Gets all groups that contain the specified contact.

Implementation

Future<List<Group>> getOf(String contactId) async {
  final result = await _channel.invokeMethod<List>('groups.getOf', {
    'contactId': contactId,
  });
  return JsonHelpers.decodeList(result, Group.fromJson);
}