DataDisplayBuilder<T>.custom constructor
const
DataDisplayBuilder<T>.custom ({
- required Widget builder(
- BuildContext context,
- T data,
- void delete()
A custom widget builder that can be used to display a piece of data.
This builder will create a widget with the following properties:
builderis a function that takes the following parameters:- context is the build context of the widget.
datais the data that should be displayed.deleteis a function that should be called when the delete button is pressed.
The returned widget will be used to display the data.
See DataDisplayBuilderString for a pre-defined string builder.
Implementation
const factory DataDisplayBuilder.custom({
required Widget Function(
BuildContext context,
T data,
void Function() delete,
)
builder,
}) = DataDisplayBuilderWidget;