GSField.radioGroup constructor
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}
)
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);
}