Dashboard<T extends DashboardItem> constructor
Dashboard<T extends DashboardItem> ({
- Key? key,
- required DashboardItemBuilder<
T> itemBuilder, - required DashboardItemController<
T> dashboardItemController, - int slotCount = 8,
- ScrollController? scrollController,
- ScrollPhysics? physics,
- DragStartBehavior? dragStartBehavior,
- ScrollBehavior? scrollBehavior,
- double cacheExtend = 500,
- double verticalSpace = 8,
- double horizontalSpace = 8,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- bool shrinkToPlace = true,
- bool slideToTop = true,
- double? slotAspectRatio,
- double? slotHeight,
- EditModeSettings? editModeSettings,
- TextDirection textDirection = TextDirection.ltr,
- Widget errorPlaceholder(
- Object error,
- StackTrace stackTrace
- Widget? loadingPlaceholder,
- Widget? emptyPlaceholder,
- bool absorbPointer = true,
- bool animateEverytime = true,
- ItemStyle itemStyle = const ItemStyle(),
- bool scrollToAdded = true,
- SlotBackgroundBuilder<
T> ? slotBackgroundBuilder,
A list of widget arranged with hand or initially.
Implementation
Dashboard(
{Key? key,
required this.itemBuilder,
required this.dashboardItemController,
this.slotCount = 8,
this.scrollController,
this.physics,
this.dragStartBehavior,
this.scrollBehavior,
this.cacheExtend = 500,
this.verticalSpace = 8,
this.horizontalSpace = 8,
this.padding = const EdgeInsets.all(0),
this.shrinkToPlace = true,
this.slideToTop = true,
this.slotAspectRatio,
this.slotHeight,
EditModeSettings? editModeSettings,
this.textDirection = TextDirection.ltr,
this.errorPlaceholder,
this.loadingPlaceholder,
this.emptyPlaceholder,
this.absorbPointer = true,
this.animateEverytime = true,
this.itemStyle = const ItemStyle(),
this.scrollToAdded = true,
this.slotBackgroundBuilder})
: assert((slotHeight == null && slotAspectRatio == null) ||
!(slotHeight != null && slotAspectRatio != null)),
editModeSettings = editModeSettings ?? EditModeSettings(),
super(key: key);