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

TxGroup.

Grouped query data with a group key and count before paging.

TxGroup

ParameterTypeDefaultMeaning
keyObject?requiredStable key or selector; distinct from a widget key.
itemsList<T>requiredEntries; replaced by dataSource when bound.
countintrequiredRecord count in the group.
groupsList<TxGroup<T>>const []Result group hierarchy.
dart
import 'package:tecexpress/tecexpress.dart';

Future<void> example() async {
  const group = TxGroup<int>(key: 'team', items: [1, 2], count: 2);
  print(group.count);
}