GSField.spinner constructor

GSField.spinner({
  1. Key? key,
  2. required String tag,
  3. String? title,
  4. String? errorMessage,
  5. String? helpMessage,
  6. Widget? prefixWidget,
  7. bool? required,
  8. bool? showTitle,
  9. GSFieldStatusEnum? status,
  10. int? weight,
  11. RegExp? validateRegEx,
  12. SpinnerDataModel? value,
  13. ValueChanged<SpinnerDataModel?>? onChange,
  14. required List<SpinnerDataModel> items,
  15. 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);
}