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