FieldModel constructor

FieldModel(
  1. {@required String label,
  2. Types type: Types.text,
  3. String errorMessage: '',
  4. bool mandatory: false,
  5. InputActions action: InputActions.auto,
  6. String hint: '',
  7. bool vallidate: false,
  8. int maxLenght: 0,
  9. bool password: false,
  10. bool readOnly: false}
)

Implementation

FieldModel({
  @required this.label,
  this.type = Types.text,
  this.errorMessage = '',
  this.mandatory = false,
  this.action = InputActions.auto,
  this.hint = '',
  this.vallidate = false,
  this.maxLenght = 0,
  this.password = false,
  this.readOnly = false,
});