GSFieldModel constructor
GSFieldModel({
- GSFieldTypeEnum? type,
- required String tag,
- bool? showTitle,
- String? title,
- String? errorMessage,
- String? helpMessage,
- Widget? prefixWidget,
- Widget? postfixWidget,
- bool? required,
- dynamic value,
- RegExp? validateRegEx,
- int? weight,
- FocusNode? focusNode,
- FocusNode? nextFocusNode,
- VoidCallback? onTap,
- GSFieldStatusEnum? status,
- 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;