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 value,
  11. RegExp? validateRegEx,
  12. int? weight,
  13. FocusNode? focusNode,
  14. FocusNode? nextFocusNode,
  15. VoidCallback? onTap,
  16. GSFieldStatusEnum? status,
  17. bool? enableReadOnly,
})

Implementation

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