GSField.radioGroup constructor

GSField.radioGroup(
  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. String? value,
  11. int? weight,
  12. RegExp? validateRegEx,
  13. String? hint,
  14. Axis? scrollDirection,
  15. Widget? selectedIcon,
  16. Widget? unSelectedIcon,
  17. bool? scrollable,
  18. double? height,
  19. bool? showScrollBar,
  20. Color? scrollBarColor,
  21. required bool searchable,
  22. String? searchHint,
  23. Icon? searchIcon,
  24. BoxDecoration? searchBoxDecoration,
  25. required List<RadioDataModel> items,
  26. required ValueChanged<RadioDataModel> callBack}
)

Implementation

GSField.radioGroup(
    {Key? key,
    required String tag,
    String? title,
    String? errorMessage,
    String? helpMessage,
    Widget? prefixWidget,
    bool? required,
    bool? showTitle,
    GSFieldStatusEnum? status,
    String? value,
    int? weight,
    RegExp? validateRegEx,
    String? hint,
    Axis? scrollDirection,
    Widget? selectedIcon,
    Widget? unSelectedIcon,
    bool? scrollable,
    double? height,
    bool? showScrollBar,
    Color? scrollBarColor,
    required bool searchable,
    String? searchHint,
    Icon? searchIcon,
    BoxDecoration? searchBoxDecoration,
    required List<RadioDataModel> items,
    required ValueChanged<RadioDataModel> callBack})
    : super(key: key) {
  model = GSRadioModel(
      type: GSFieldTypeEnum.radioGroup,
      tag: tag,
      showTitle: showTitle ?? true,
      title: title,
      errorMessage: errorMessage,
      helpMessage: helpMessage,
      required: required,
      status: status,
      value: value,
      weight: weight,
      showScrollBar: showScrollBar,
      scrollBarColor: scrollBarColor,
      hint: hint,
      items: items,
      callBack: callBack,
      scrollDirection: scrollDirection,
      unSelectedIcon: unSelectedIcon,
      selectedIcon: selectedIcon,
      scrollable: scrollable ?? false,
      height: height,
      searchable: searchable,
      searchHint: searchHint,
      searchIcon: searchIcon,
      searchBoxDecoration: searchBoxDecoration);
}