MhItemsViewSettings<T> constructor
MhItemsViewSettings<T> ({
- double rowHeight = 52,
- double getRowHeight(
- T item
- Color getRowBackgroundColor(
- T item
- bool displayHeader = true,
- double headerHeight = 56,
- bool multiLineEdit = true,
- MhStatusViewSettings<
T> ? statusViewSettings, - MhItemsViewSelectionSettings? selectionSettings,
- MhItemsViewDragDropSettings<
T> ? dragDropSettings, - MhItemsViewTextSettings? textSettings,
- MhItemsViewEvents<
T> ? events,
Implementation
MhItemsViewSettings({
this.rowHeight = 52,
this.getRowHeight,
this.getRowBackgroundColor,
this.displayHeader = true,
this.headerHeight = 56,
this.multiLineEdit = true,
this.statusViewSettings,
MhItemsViewSelectionSettings? selectionSettings,
MhItemsViewDragDropSettings<T>? dragDropSettings,
MhItemsViewTextSettings? textSettings,
MhItemsViewEvents<T>? events,
}) {
this.selectionSettings =
selectionSettings ?? MhItemsViewSelectionSettings();
this.dragDropSettings =
dragDropSettings ?? MhItemsViewDragDropSettings<T>();
this.textSettings = textSettings ?? MhItemsViewTextSettings();
this.events = events ?? MhItemsViewEvents<T>();
}