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

TxDataSourceBuilder.

Interactive preview

Binds custom widgets to a List, configuration or DataSource and rebuilds on changes.

TxDataSourceBuilder

ParameterTypeDefaultMeaning
dataSourceObjectrequiredList, configuration or DataSource instance; takes precedence over items.
builderWidget Function(BuildContext, List<T>, TxDataSource<T>?)requiredBuilds custom content; callback arguments and return type are given in the signature.
dart
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(', ')));
}