getGroups method
Implementation
Future<List<ListGroups>> getGroups([ListGroups? lastFetchedItem]) async {
final jwt = await getJwt();
final lastFetchedTime = lastFetchedItem?.time.toString() ?? "0";
final lastFetchedGroupId = lastFetchedItem?.groupId ?? "none";
return Sentc.getApi().groupGetGroupsForUser(
baseUrl: baseUrl,
authToken: appToken,
jwt: jwt,
lastFetchedTime: lastFetchedTime,
lastFetchedGroupId: lastFetchedGroupId,
groupId: groupId,
);
}