FdcGridOptions constructor
const
FdcGridOptions({
- bool readOnly = false,
- bool allowColumnSorting = true,
- bool allowColumnFiltering = true,
- bool allowColumnReordering = true,
- bool allowColumnResize = true,
- bool autoEdit = true,
- bool confirmDelete = true,
- double defaultColumnWidth = fallbackDefaultColumnWidth,
- double rowHeight = fallbackRowHeight,
- FdcGridVerticalScrollMode verticalScrollMode = FdcGridVerticalScrollMode.recordScroll,
- FdcGridHorizontalScrollMode horizontalScrollMode = FdcGridHorizontalScrollMode.columnSnap,
- 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.',
);