BrnTextSelectFormItem constructor

BrnTextSelectFormItem({
  1. Key? key,
  2. String? label,
  3. String title = "",
  4. String? subTitle,
  5. String? tipLabel,
  6. String prefixIconType = BrnPrefixIconType.normal,
  7. String error = "",
  8. bool isEdit = true,
  9. bool isRequire = false,
  10. VoidCallback? onAddTap,
  11. VoidCallback? onRemoveTap,
  12. VoidCallback? onTip,
  13. String? hint,
  14. String? value,
  15. int valueMaxLines = 1,
  16. int? titleMaxLines,
  17. VoidCallback? onTap,
  18. Color? backgroundColor,
  19. 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));
}