StarsFormItem constructor

StarsFormItem({
  1. Key? key,
  2. String? label,
  3. String title = "",
  4. String? subTitle,
  5. String? tipLabel,
  6. String prefixIconType = PrefixIconType.normal,
  7. String error = "",
  8. bool isEdit = true,
  9. bool isRequire = false,
  10. VoidCallback? onAddTap,
  11. VoidCallback? onRemoveTap,
  12. VoidCallback? onTip,
  13. int sumStar = 5,
  14. int value = 0,
  15. OnBrnFormValueChanged? onChanged,
  16. Color? backgroundColor,
  17. 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));
}