NiceDataGrid<T> constructor
const
NiceDataGrid<T>({ - Key? key,
- required List<NiceGridColumn<T>> columns,
- required List<T> rows,
- double rowHeight = 48.0,
- void onRowTap(
- T row,
- int index
)?,
- void onRowDoubleTap(
- T row,
- int index
)?,
- int? selectedIndex,
- void onSort(
- NiceGridSort sort
)?,
- NiceGridSort? sort,
- bool showBorder = true,
- bool showStripes = true,
- Widget? emptyWidget,
})
Implementation
const NiceDataGrid({
super.key,
required this.columns,
required this.rows,
this.rowHeight = 48.0,
this.headerHeight = 52.0,
this.onRowTap,
this.onRowDoubleTap,
this.selectedIndex,
this.onSort,
this.sort,
this.showBorder = true,
this.showStripes = true,
this.emptyWidget,
this.keyExtractor,
});