ColumnWidgetModel constructor
ColumnWidgetModel({
- required List<
ColumnHeaderModel> columnsList, - CheckBoxWidgetStyle? checkBoxWidgetStyle,
- bool headerBorder = true,
- Color? headerBorderColor,
- Color? backgroundColor,
- 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;
}
}
}