list method
Future<List<Feeds> ?>
list({
- required ChatListType type,
- int page = 1,
- int limit = 10,
- String? overrideAccount,
Implementation
Future<List<Feeds>?> list({
required ChatListType type,
int page = 1,
int limit = 10,
String? overrideAccount,
}) async {
switch (type) {
case ChatListType.CHATS:
return PUSH_CHAT.chats(
accountAddress: overrideAccount ?? _account,
limit: limit,
page: page,
pgpPrivateKey: _decryptedPgpPvtKey,
toDecrypt: _hasSigner,
);
case ChatListType.REQUESTS:
return PUSH_CHAT.requests(
accountAddress: overrideAccount ?? _account,
limit: limit,
page: page,
pgpPrivateKey: _decryptedPgpPvtKey,
toDecrypt: _hasSigner,
);
}
}