getTableData method

Future<TablePageDto> getTableData(
  1. String id, {
  2. required String table,
  3. int limit = 50,
  4. int offset = 0,
  5. String? orderBy,
  6. bool desc = false,
  7. List<ColumnFilter> filters = const [],
})

Reads one page of rows from table on instance id.

Implementation

Future<TablePageDto> getTableData(
  String id, {
  required String table,
  int limit = 50,
  int offset = 0,
  String? orderBy,
  bool desc = false,
  List<ColumnFilter> filters = const [],
}) async {
  final json = await _call(
    BasaltExtension.getTableData,
    _tableDataArgs(id, table, limit, offset, orderBy, desc, filters),
  );
  return TablePageDto.fromJson(json);
}