AddLabel constructor

AddLabel({
  1. Key? key,
  2. String? label,
  3. String title = "",
  4. bool isEdit = true,
  5. Color? backgroundColor,
  6. VoidCallback? onTap,
  7. FormItemConfig? themeData,
})

Implementation

AddLabel({
  Key? key,
  this.label,
  this.title = "",
  this.isEdit = true,
  this.backgroundColor,
  this.onTap,
  this.themeData,
}) : super(key: key) {
  themeData ??= FormItemConfig();
  themeData = BaseThemeConfig.instance
      .getConfig(configId: themeData!.configId)
      .formItemConfig
      .merge(themeData);
  themeData =
      themeData!.merge(FormItemConfig(backgroundColor: backgroundColor));
}