ColumnWidgetModel constructor

ColumnWidgetModel({
  1. required List<ColumnHeaderModel> columnsList,
  2. CheckBoxWidgetStyle? checkBoxWidgetStyle,
  3. bool headerBorder = true,
  4. Color? headerBorderColor,
  5. Color? backgroundColor,
  6. TextStyle? style,
})

constructor

Implementation

ColumnWidgetModel({
  required this.columnsList,
  this.checkBoxWidgetStyle,
  this.headerBorder = true,
  this.headerBorderColor,
  this.backgroundColor,
  this.style
}){
  /// initializing other values
  backgroundColor ??= Colors.green;
  /// checking if sortable
  for(ColumnHeaderModel col in columnsList){
    if(col.columnType == RowFieldWidgetType.editText){
      isSortable = false;
    }
  }
}