TextSelectFormItem constructor

TextSelectFormItem({
  1. Key? key,
  2. String? label,
  3. String title = "",
  4. String? subTitle,
  5. String? tipLabel,
  6. String prefixIconType = PrefixIconType.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. FormItemConfig? themeData,
})

Implementation

TextSelectFormItem({
  Key? key,
  this.label,
  this.title = "",
  this.subTitle,
  this.tipLabel,
  this.prefixIconType = PrefixIconType.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) {
  _isAutoLayout = false;
  themeData ??= FormItemConfig();
  themeData = BaseThemeConfig.instance
      .getConfig(configId: themeData!.configId)
      .formItemConfig
      .merge(themeData);
  themeData =
      themeData!.merge(FormItemConfig(backgroundColor: backgroundColor));
}