BaseTitle constructor

BaseTitle({
  1. Key? key,
  2. String title = "",
  3. String? subTitle,
  4. bool isRequire = false,
  5. bool isEdit = true,
  6. String error = "",
  7. String? tipLabel,
  8. Widget? titleWidget,
  9. Widget? subTitleWidget,
  10. Widget? customActionWidget,
  11. VoidCallback? onTip,
  12. Color? backgroundColor,
  13. FormItemConfig? themeData,
})

Implementation

BaseTitle({
  Key? key,
  this.title = "",
  this.subTitle,
  this.isRequire = false,
  this.isEdit = true,
  this.error = "",
  this.tipLabel,
  this.titleWidget,
  this.subTitleWidget,
  this.customActionWidget,
  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));
}