GSField.spinner constructor
GSField.spinner({
- Key? key,
- required String tag,
- String? title,
- String? errorMessage,
- String? helpMessage,
- Widget? prefixWidget,
- bool? required,
- bool? showTitle,
- GSFieldStatusEnum? status,
- int? weight,
- RegExp? validateRegEx,
- SpinnerDataModel? value,
- ValueChanged<
SpinnerDataModel?> ? onChange, - required List<
SpinnerDataModel> items, - String? hint,
Implementation
GSField.spinner({
Key? key,
required String tag,
String? title,
String? errorMessage,
String? helpMessage,
Widget? prefixWidget,
bool? required,
bool? showTitle,
GSFieldStatusEnum? status,
int? weight,
RegExp? validateRegEx,
SpinnerDataModel? value,
ValueChanged<SpinnerDataModel?>? onChange,
required List<SpinnerDataModel> items,
String? hint,
}) : super(key: key) {
model = GSSpinnerModel(
type: GSFieldTypeEnum.spinner,
tag: tag,
showTitle: showTitle ?? true,
title: title,
errorMessage: errorMessage,
helpMessage: helpMessage,
prefixWidget: prefixWidget,
required: required,
status: status,
weight: weight,
items: items,
hint: hint,
onChange: onChange,
value: value);
}