AddLabel constructor
AddLabel({
- Key? key,
- String? label,
- String title = "",
- bool isEdit = true,
- Color? backgroundColor,
- VoidCallback? onTap,
- 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));
}