FdcGridOptions constructor

const FdcGridOptions({
  1. bool readOnly = false,
  2. bool allowColumnSorting = true,
  3. bool allowColumnFiltering = true,
  4. bool allowColumnReordering = true,
  5. bool allowColumnResize = true,
  6. bool autoEdit = true,
  7. bool confirmDelete = true,
  8. double defaultColumnWidth = fallbackDefaultColumnWidth,
  9. double rowHeight = fallbackRowHeight,
  10. FdcGridVerticalScrollMode verticalScrollMode = FdcGridVerticalScrollMode.recordScroll,
  11. FdcGridHorizontalScrollMode horizontalScrollMode = FdcGridHorizontalScrollMode.columnSnap,
  12. FdcGridScrollbars scrollbars = FdcGridScrollbars.both,
})

Creates a FdcGridOptions.

Implementation

const FdcGridOptions({
  this.readOnly = false,
  this.allowColumnSorting = true,
  this.allowColumnFiltering = true,
  this.allowColumnReordering = true,
  this.allowColumnResize = true,
  this.autoEdit = true,
  this.confirmDelete = true,
  this.defaultColumnWidth = fallbackDefaultColumnWidth,
  this.rowHeight = fallbackRowHeight,
  this.verticalScrollMode = FdcGridVerticalScrollMode.recordScroll,
  this.horizontalScrollMode = FdcGridHorizontalScrollMode.columnSnap,
  this.scrollbars = FdcGridScrollbars.both,
}) : assert(
       defaultColumnWidth >= minimumDefaultColumnWidth &&
           defaultColumnWidth != double.infinity,
       'FdcGridOptions.defaultColumnWidth must be a finite value >= '
       'FdcGridOptions.minimumDefaultColumnWidth.',
     ),
     assert(
       rowHeight >= minimumRowHeight && rowHeight != double.infinity,
       'FdcGridOptions.rowHeight must be a finite value >= '
       'FdcGridOptions.minimumRowHeight.',
     );