GSFieldModel constructor

GSFieldModel(
  1. {GSFieldTypeEnum? type,
  2. required String tag,
  3. bool? showTitle,
  4. String? title,
  5. String? errorMessage,
  6. String? helpMessage,
  7. Widget? prefixWidget,
  8. Widget? postfixWidget,
  9. bool? required,
  10. dynamic defaultValue,
  11. RegExp? validateRegEx,
  12. int? weight,
  13. FocusNode? focusNode,
  14. FocusNode? nextFocusNode,
  15. GSFieldStatusEnum? status}
)

Implementation

GSFieldModel({
  this.type,
  required this.tag,
  this.showTitle,
  this.title,
  this.errorMessage,
  this.helpMessage,
  this.prefixWidget,
  this.postfixWidget,
  this.required,
  this.defaultValue,
  this.validateRegEx,
  this.weight,
  this.focusNode,
  this.nextFocusNode,
  GSFieldStatusEnum? status,
}) : status = status ?? GSFieldStatusEnum.normal;