findAll method

  1. @override
Future<List<DocumentsModel>> findAll({
  1. int? limit,
  2. int? offset,
  3. String? orderBy,
  4. bool ascending = true,
  5. Map<String, dynamic>? filters,
})
override

Retrieves all records from this table with support for:

  • Pagination using limit and offset
  • Sorting by orderBy in ascending order
  • Filtering using filters

All parameters are optional.

Implementation

@override
Future<List<DocumentsModel>> findAll({
  int? limit,
  int? offset,
  String? orderBy,
  bool ascending = true,
  Map<String, dynamic>? filters,
}) async {
  return super.findAll(
    limit: limit,
    offset: offset,
    orderBy: orderBy,
    ascending: ascending,
    filters: filters,
  );
}