getRecords function

Future<ResultList<RecordModel>> getRecords(
  1. String v
)

Implementation

Future<ResultList<RecordModel>> getRecords(String v) async {
  String userID = await getUserID();
  final record = await pocketBase.collection(v).getList(
    filter: 'userID = "$userID"',
  );
  return record;
}