builder static method
FTileGroup
builder({
- required NullableIndexedWidgetBuilder tileBuilder,
- int? count,
- FTileGroupStyle style(
- FTileGroupStyle style
- ScrollController? scrollController,
- double? cacheExtent,
- double maxHeight = .infinity,
- DragStartBehavior dragStartBehavior = .start,
- ScrollPhysics physics = const ClampingScrollPhysics(),
- bool? enabled,
- FItemDivider divider = .indented,
- String? semanticsLabel,
- Widget? label,
- Widget? description,
- Widget? error,
- Key? key,
The tileBuilder is called for each tile that should be built. The current level's FInheritedItemData is not
visible to tileBuilder.
- It may return null to signify the end of the group.
- It may be called more than once for the same index.
- It will be called only for indices <=
countifcountis given.
The count is the number of tiles to build. If null, tileBuilder will be called until it returns null.
Notes
May result in an infinite loop or run out of memory if:
- Placed in a parent widget that does not constrain its size, i.e. Column.
countis null andtileBuilderalways provides a zero-size widget, i.e. SizedBox(). If possible, provide tiles with non-zero size, return null from builder, or setcountto non-null.
This function is a shorthand for FTileGroup.builder.
Implementation
static FTileGroup builder({
required NullableIndexedWidgetBuilder tileBuilder,
int? count,
FTileGroupStyle Function(FTileGroupStyle style)? style,
ScrollController? scrollController,
double? cacheExtent,
double maxHeight = .infinity,
DragStartBehavior dragStartBehavior = .start,
ScrollPhysics physics = const ClampingScrollPhysics(),
bool? enabled,
FItemDivider divider = .indented,
String? semanticsLabel,
Widget? label,
Widget? description,
Widget? error,
Key? key,
}) => .builder(
tileBuilder: tileBuilder,
count: count,
style: style,
scrollController: scrollController,
cacheExtent: cacheExtent,
maxHeight: maxHeight,
dragStartBehavior: dragStartBehavior,
physics: physics,
enabled: enabled,
divider: divider,
semanticsLabel: semanticsLabel,
label: label,
description: description,
error: error,
key: key,
);