StarsFormItem constructor
StarsFormItem({
- 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,
- int sumStar = 5,
- int value = 0,
- OnBrnFormValueChanged? onChanged,
- Color? backgroundColor,
- FormItemConfig? themeData,
Implementation
StarsFormItem(
{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.sumStar = 5,
this.value = 0,
this.onChanged,
this.backgroundColor,
this.themeData})
: super(key: key) {
themeData ??= FormItemConfig();
themeData = BaseThemeConfig.instance
.getConfig(configId: themeData!.configId)
.formItemConfig
.merge(themeData);
themeData =
themeData!.merge(FormItemConfig(backgroundColor: backgroundColor));
}