GeneralFormItem constructor

GeneralFormItem({
  1. Key? key,
  2. String? label,
  3. String title = "",
  4. Widget? titleWidget,
  5. String? subTitle,
  6. Widget? subTitleWidget,
  7. String? tipLabel,
  8. String prefixIconType = PrefixIconType.normal,
  9. String error = "",
  10. bool isEdit = true,
  11. bool isRequire = false,
  12. Widget? operateWidget,
  13. VoidCallback? onAddTap,
  14. VoidCallback? onRemoveTap,
  15. VoidCallback? onTip,
  16. Color? backgroundColor,
  17. FormItemConfig? themeData,
})

Implementation

GeneralFormItem({
  Key? key,
  this.label,
  this.title = "",
  this.titleWidget,
  this.subTitle,
  this.subTitleWidget,
  this.tipLabel,
  this.prefixIconType = PrefixIconType.normal,
  this.error = "",
  this.isEdit = true,
  this.isRequire = false,
  this.operateWidget,
  this.onAddTap,
  this.onRemoveTap,
  this.onTip,
  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));
}