t×tecexpressby TeKOcloud
DEv0.7.1
API & types / FLUTTER

txQuery.

Synchronously processes local data: filter/search, sort/group, page and project. The input array is preserved.

Parameters: input = source list, o/options = TxLoadOptions. Synchronous result: TxLoadResult with flat data, totalCount before paging and optional groups/groupCount. Grouping does not change the shape of data. Getter/projection errors propagate; Dart skip/take must not be negative.

dart
TxLoadResult<T> txQuery<T>(List<T> input, TxLoadOptions<T> options)
dart
import 'package:tecexpress/tecexpress.dart';

Future<void> example() async {
  print(txQuery([2, 1], TxLoadOptions<int>(sort: [TxSort((v) => v)], take: 1)).data);
}