getChats method
Implementation
Future<List<PeamanChat>> getChats({
final MyQuery Function(MyQuery)? query,
}) {
final _ref = PeamanReferenceHelper.chatsCol
.where('visibility', isEqualTo: true)
.orderBy('updated_at', descending: true);
final _query = query?.call(_ref) ?? _ref;
return _query.get().then(_chatsFromFirestore);
}