TitleFormItem constructor

TitleFormItem({
  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? onTip,
  11. String? operationLabel,
  12. VoidCallback? onTap,
  13. Color? backgroundColor,
  14. FormItemConfig? themeData,
})

Implementation

TitleFormItem(
    {Key? key,
    this.label,
    this.title = "",
    this.subTitle,
    this.tipLabel,
    this.prefixIconType = PrefixIconType.normal,
    this.error = "",
    this.isEdit = true,
    this.isRequire = false,
    this.onTip,
    this.operationLabel,
    this.onTap,
    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));
}