GSField.price constructor
GSField.price(- {Key? key,
- required String tag,
- String? title,
- String? errorMessage,
- String? helpMessage,
- Widget? prefixWidget,
- String? currencyName,
- bool? required,
- bool? showTitle,
- GSFieldStatusEnum? status,
- String? value,
- int? weight,
- RegExp? validateRegEx,
- int? maxLength,
- String? hint}
)
Implementation
GSField.price({
Key? key,
required String tag,
String? title,
String? errorMessage,
String? helpMessage,
Widget? prefixWidget,
String? currencyName,
bool? required,
bool? showTitle,
GSFieldStatusEnum? status,
String? value,
int? weight,
RegExp? validateRegEx,
int? maxLength,
String? hint,
}) : super(key: key) {
model = GSPriceModel(
type: GSFieldTypeEnum.price,
tag: tag,
title: title,
showTitle: showTitle ?? true,
errorMessage: errorMessage,
helpMessage: helpMessage,
prefixWidget: prefixWidget,
postfixWidget: Text(
currencyName ?? '',
style: GSFormTheme.textThemeStyle.displaySmall,
),
required: required,
status: status,
value: value,
weight: weight,
maxLength: maxLength,
hint: hint,
);
}