Binds custom widgets to a List, configuration or DataSource and rebuilds on changes.
TxDataSourceBuilder
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| dataSource | Object | required | List, configuration or DataSource instance; takes precedence over items. |
| builder | Widget Function(BuildContext, List<T>, TxDataSource<T>?) | required | Builds custom content; callback arguments and return type are given in the signature. |
import 'package:flutter/material.dart';
import 'package:tecexpress/tecexpress.dart';
Widget example() {
return TxDataSourceBuilder<String>(dataSource: const ['One'], builder: (context, items, source) => Text(items.join(', ')));
}