RadioInputFormItem constructor
RadioInputFormItem({
- Key? key,
- String? label,
- String title = "",
- String? subTitle,
- String? tipLabel,
- String prefixIconType = PrefixIconType.normal,
- String error = "",
- bool isEdit = true,
- bool isRequire = false,
- VoidCallback? onAddTap,
- VoidCallback? onRemoveTap,
- VoidCallback? onTip,
- String? value,
- List<
String> ? options, - List<
bool> ? enableList, - OnBrnFormRadioValueChanged? onChanged,
- FormItemConfig? themeData,
- Color? backgroundColor,
- int? titleMaxLines,
Implementation
RadioInputFormItem({
Key? key,
this.label,
this.title = "",
this.subTitle,
this.tipLabel,
this.prefixIconType = PrefixIconType.normal,
this.error = "",
this.isEdit = true,
this.isRequire = false,
this.onAddTap,
this.onRemoveTap,
this.onTip,
this.value,
this.options,
this.enableList,
this.onChanged,
this.themeData,
this.backgroundColor,
this.titleMaxLines,
}) : super(key: key) {
themeData ??= FormItemConfig();
themeData = BaseThemeConfig.instance
.getConfig(configId: themeData!.configId)
.formItemConfig
.merge(themeData);
themeData =
themeData!.merge(FormItemConfig(backgroundColor: backgroundColor));
_isAutoLayout = false;
}