RowFieldWidgetModel<T> constructor

RowFieldWidgetModel<T>({
  1. RowFieldWidgetType? type,
  2. required ColumnHeaderModel columnHeaderModel,
  3. required dynamic value,
  4. List<CustomTableDropDownModel> dropDownOptionsList = const [],
  5. dynamic onRowFieldClick()?,
  6. TextAlign? textAlign,
  7. TextStyle? style,
  8. T? other,
  9. dynamic onDropDownValueChange(
    1. CustomTableDropDownModel<T>,
    2. RowFieldWidgetModel<T>
    )?,
  10. dynamic onEditTextValueChange(
    1. String value,
    2. RowFieldWidgetModel<T>
    )?,
  11. InputType? inputType = InputType.string,
})

constructor

Implementation

RowFieldWidgetModel({
  this.type,
  required this.columnHeaderModel,
  required this.value,
  this.dropDownOptionsList = const [],
  this.onRowFieldClick,
  this.textAlign,
  this.style,
  this.other,
  this.onDropDownValueChange,
  this.onEditTextValueChange,
  this.inputType = InputType.string
}){
  /// initializing other data from column model
  type ??= columnHeaderModel.columnType;
  columnName ??= columnHeaderModel.slug;
  fixedWidth ??= columnHeaderModel.fixedWidth;
  textAlign ??= columnHeaderModel.textAlign;
}