BrnTextSelectFormItem constructor
BrnTextSelectFormItem({
- Key? key,
- String? label,
- String title = "",
- String? subTitle,
- String? tipLabel,
- String prefixIconType = BrnPrefixIconType.normal,
- String error = "",
- bool isEdit = true,
- bool isRequire = false,
- VoidCallback? onAddTap,
- VoidCallback? onRemoveTap,
- VoidCallback? onTip,
- String? hint,
- String? value,
- int valueMaxLines = 1,
- int? titleMaxLines,
- VoidCallback? onTap,
- Color? backgroundColor,
- BrnFormItemConfig? themeData,
Implementation
BrnTextSelectFormItem({
Key? key,
this.label,
this.title = "",
this.subTitle,
this.tipLabel,
this.prefixIconType = BrnPrefixIconType.normal,
this.error = "",
this.isEdit = true,
this.isRequire = false,
this.onAddTap,
this.onRemoveTap,
this.onTip,
this.hint,
this.value,
this.valueMaxLines = 1,
this.titleMaxLines,
this.onTap,
this.backgroundColor,
this.themeData,
}) : super(key: key) {
this._isAutoLayout = false;
this.themeData ??= BrnFormItemConfig();
this.themeData = BrnThemeConfigurator.instance
.getConfig(configId: this.themeData!.configId)
.formItemConfig
.merge(this.themeData);
this.themeData = this
.themeData!
.merge(BrnFormItemConfig(backgroundColor: backgroundColor));
}