FTileGroup constructor

FTileGroup({
  1. required List<FTileMixin> children,
  2. FTileGroupStyle? style,
  3. ScrollController? scrollController,
  4. double? cacheExtent,
  5. double maxHeight = double.infinity,
  6. DragStartBehavior dragStartBehavior = DragStartBehavior.start,
  7. ScrollPhysics physics = const ClampingScrollPhysics(),
  8. bool? enabled,
  9. FTileDivider divider = FTileDivider.indented,
  10. String? semanticsLabel,
  11. Widget? label,
  12. Widget? description,
  13. Widget? error,
  14. Key? key,
})

Creates a FTileGroup.

Implementation

FTileGroup({
  required List<FTileMixin> children,
  this.style,
  this.scrollController,
  this.cacheExtent,
  this.maxHeight = double.infinity,
  this.dragStartBehavior = DragStartBehavior.start,
  this.physics = const ClampingScrollPhysics(),
  this.enabled,
  this.divider = FTileDivider.indented,
  this.semanticsLabel,
  this.label,
  this.description,
  this.error,
  super.key,
}) : assert(0 < maxHeight, 'maxHeight must be positive.'),
     delegate = ((style, {required enabled}) => SliverChildListDelegate([
       for (final (index, child) in children.indexed)
         FTileData(
           style: style,
           divider: divider,
           states: {if (!enabled) WidgetState.disabled},
           index: index,
           last: index == children.length - 1,
           pressable: true,
           child: child,
         ),
     ]));