Davi<DATA> constructor

const Davi<DATA>(
  1. DaviModel<DATA>? model, {
  2. Key? key,
  3. OnRowHoverListener? onHover,
  4. ScrollController? unpinnedHorizontalScrollController,
  5. ScrollController? pinnedHorizontalScrollController,
  6. ScrollController? verticalScrollController,
  7. OnLastVisibleRowListener? onLastVisibleRow,
  8. RowTapCallback<DATA>? onRowTap,
  9. RowTapCallback<DATA>? onRowSecondaryTap,
  10. RowDoubleTapCallback<DATA>? onRowDoubleTap,
  11. ColumnWidthBehavior columnWidthBehavior = ColumnWidthBehavior.scrollable,
  12. int? visibleRowsCount,
  13. bool focusable = true,
  14. bool tapToSortEnabled = true,
  15. Widget? lastRowWidget,
  16. DaviRowColor<DATA>? rowColor,
  17. DaviRowCursor<DATA>? rowCursor,
  18. OnLastRowWidgetListener? onLastRowWidget,
})

Implementation

const Davi(this.model,
    {Key? key,
    this.onHover,
    this.unpinnedHorizontalScrollController,
    this.pinnedHorizontalScrollController,
    this.verticalScrollController,
    this.onLastVisibleRow,
    this.onRowTap,
    this.onRowSecondaryTap,
    this.onRowDoubleTap,
    this.columnWidthBehavior = ColumnWidthBehavior.scrollable,
    int? visibleRowsCount,
    this.focusable = true,
    this.tapToSortEnabled = true,
    this.lastRowWidget,
    this.rowColor,
    this.rowCursor,
    this.onLastRowWidget})
    : visibleRowsCount = visibleRowsCount == null || visibleRowsCount > 0
          ? visibleRowsCount
          : null,
      super(key: key);