GSField.text constructor
GSField.text({
- Key? key,
- required String tag,
- String? title,
- String? errorMessage,
- String? helpMessage,
- Widget? prefixWidget,
- Widget? postfixWidget,
- bool? required,
- bool? showTitle,
- GSFieldStatusEnum? status,
- String? value,
- int? weight,
- RegExp? validateRegEx,
- int? maxLength,
- int? minLine,
- int? maxLine,
- String? hint,
- bool? readOnly,
- FocusNode? focusNode,
- FocusNode? nextFocusNode,
Implementation
GSField.text({
Key? key,
required String tag,
String? title,
String? errorMessage,
String? helpMessage,
Widget? prefixWidget,
Widget? postfixWidget,
bool? required,
bool? showTitle,
GSFieldStatusEnum? status,
String? value,
int? weight,
RegExp? validateRegEx,
int? maxLength,
int? minLine,
int? maxLine,
String? hint,
bool? readOnly,
FocusNode? focusNode,
FocusNode? nextFocusNode}) : super(key: key) {
model = GSTextModel(
type: GSFieldTypeEnum.text,
tag: tag,
focusNode: focusNode,
nextFocusNode: nextFocusNode,
showTitle: showTitle ?? true,
title: title,
errorMessage: errorMessage,
helpMessage: helpMessage,
prefixWidget: prefixWidget,
postfixWidget: postfixWidget,
required: required,
status: status,
value: value,
weight: weight,
maxLength: maxLength,
hint: hint,
enableReadOnly: readOnly,
);
}