Card field with a caption, getter and optional builder.
TxCardField
| Parameter | Type | Default | Meaning |
|---|---|---|---|
| caption | String | required | Visible field/column caption. |
| valueGetter | Object? Function(T row) | required | Reads the field value to display. |
| builder | Widget Function(BuildContext context, T row, Object? value)? | null | Builds custom content; callback arguments and return type are given in the signature. |
import 'package:tecexpress/tecexpress.dart';
Future<void> example() async {
final field = TxCardField<int>(caption: 'Number', valueGetter: (v) => v);
print(field.valueGetter(1));
}