Dashboard<T extends DashboardItem> constructor

Dashboard<T extends DashboardItem>({
  1. Key? key,
  2. required DashboardItemBuilder<T> itemBuilder,
  3. required DashboardItemController<T> dashboardItemController,
  4. int slotCount = 8,
  5. ScrollController? scrollController,
  6. ScrollPhysics? physics,
  7. DragStartBehavior? dragStartBehavior,
  8. ScrollBehavior? scrollBehavior,
  9. double cacheExtend = 500,
  10. double verticalSpace = 8,
  11. double horizontalSpace = 8,
  12. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  13. bool shrinkToPlace = true,
  14. bool slideToTop = true,
  15. double? slotAspectRatio,
  16. double? slotHeight,
  17. EditModeSettings? editModeSettings,
  18. TextDirection textDirection = TextDirection.ltr,
  19. Widget errorPlaceholder(
    1. Object error,
    2. StackTrace stackTrace
    )?,
  20. Widget? loadingPlaceholder,
  21. Widget? emptyPlaceholder,
  22. bool absorbPointer = true,
  23. bool animateEverytime = true,
  24. ItemStyle itemStyle = const ItemStyle(),
  25. bool scrollToAdded = true,
  26. 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);