RowFieldWidgetModel<T> class
This is the constructor of RowFieldWidgetModel
Constructors
-
RowFieldWidgetModel({RowFieldWidgetType? type, required ColumnHeaderModel columnHeaderModel, required dynamic value, List<
CustomTableDropDownModel> dropDownOptionsList = const [], dynamic onRowFieldClick()?, TextAlign? textAlign, TextStyle? style, T? other, dynamic onDropDownValueChange(CustomTableDropDownModel<T> , RowFieldWidgetModel<T> )?, dynamic onEditTextValueChange(String value, RowFieldWidgetModel<T> )?, InputType? inputType = InputType.string}) - constructor
- RowFieldWidgetModel.empty()
-
empty row
factory
Properties
- columnHeaderModel ↔ ColumnHeaderModel
-
columnHeaderModel is also required and it only accepts a ColumnHeaderModel.
This should the same column header model object on which the particular cell this under.
getter/setter pair
- columnName ↔ String?
-
this is the corresponding column name
getter/setter pair
-
dropDownOptionsList
↔ List<
CustomTableDropDownModel> -
dropDownOptionsList is a List of CustomTableDropDownModel.
This is required when the field or cell is dropdown type.
getter/setter pair
- fixedWidth ↔ double?
-
fixedWidth is a double type. This provides the cell a fixed width.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- inputType ↔ InputType?
-
inputType is a InputType type.
This is used when the particular field or cell is EditText type.
This indicates if the input type of the edit text field.
getter/setter pair
-
onDropDownValueChange
↔ dynamic Function(CustomTableDropDownModel<
T> , RowFieldWidgetModel<T> )? -
onDropDownValueChange is a Function.
This function is used when the field or cell is Dropdown type.
This function has 2 parameter. One is CustomTableDropDownModel
getter/setter pair
-
onEditTextValueChange
↔ dynamic Function(String value, RowFieldWidgetModel<
T> )? -
onEditTextValueChange is also a Function.
Which is used when the field or the cell is a EditText type.
This function also has 2 parameter.
One is String type, which is the updated String value which is written in the edit text field and
another one is the another one is RowFieldWidgetModel
getter/setter pair
- onRowFieldClick ↔ dynamic Function()?
-
onRowFieldClick is a Function.
If the type of the field or cell is "Clickable",
then this function is called on when user click on the field or cell.
getter/setter pair
- other ↔ T?
-
other is a Generic Type.
This field for if anyone wants to put some other information about this field to use it later.
You may put any type of data here. All you need is just to put the Generic Data type when initializing the widget.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style ↔ TextStyle?
-
style is a TextStyle type value an it's not required as well.
This gives a style of you text typed field or cell.
getter/setter pair
- textAlign ↔ TextAlign?
-
textAlign is a TextAlign type value. This field not required. ColumnHeaderModel will initialize it.
getter/setter pair
- type ↔ RowFieldWidgetType?
-
type is a RowFieldWidgetType type enum.
This is not required. This field is initialized by the ColumnHeaderWidget.
So you can ignore it when building row widgets.
getter/setter pair
- value ↔ dynamic
-
value is a dynamic type field.
This required field accepts all kind of data type including
Int, Double, String, DateTime
when the cell is text widget or clickable widget or edit text widget.
The Sort function mentioned above works according to this value.
Again this value can be CustomTableDropDownModel
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited