getContacts method

Future<List<Contact>> getContacts({
  1. int offset = 0,
  2. dynamic limit = 50,
})

Get contacts with pagination based on offset and limit.

getContacts(offset: 0, limit: 50) will return the first 50 contacts. getContacts(offset: 50, limit: 50) will return the second 50 contacts. etc.

Implementation

Future<List<Contact>> getContacts({int offset = 0, limit = 50}) async {
  return _repository.getContacts(offset: offset, limit: limit);
}