MhItemsViewSettings<T> constructor

MhItemsViewSettings<T>({
  1. double rowHeight = 52,
  2. double getRowHeight(
    1. T item
    )?,
  3. Color getRowBackgroundColor(
    1. T item
    )?,
  4. bool displayHeader = true,
  5. double headerHeight = 56,
  6. bool multiLineEdit = true,
  7. MhStatusViewSettings<T>? statusViewSettings,
  8. MhItemsViewSelectionSettings? selectionSettings,
  9. MhItemsViewDragDropSettings<T>? dragDropSettings,
  10. MhItemsViewTextSettings? textSettings,
  11. 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>();
}