Grouped query data with a group key and count before paging.
TxGroup
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| key | Object? | required | Stable key or selector; distinct from a widget key. |
| items | List<T> | required | Entries; replaced by dataSource when bound. |
| count | int | required | Record count in the group. |
| groups | List<TxGroup<T>> | const [] | Result group hierarchy. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
const group = TxGroup<int>(key: 'team', items: [1, 2], count: 2);
print(group.count);
}