Control constructor

Control({
  1. required RxString title,
  2. required List listData,
  3. required String id,
  4. bool ocr = false,
  5. bool userbuy = false,
  6. required bool required,
  7. required TypeInputForm typeInput,
  8. TextInputType keyType = TextInputType.text,
  9. required RxString value,
  10. BuildContext? context,
  11. bool isSearch = true,
  12. bool? isShowDK = true,
  13. bool? isShowDKiem = true,
  14. FormatValuePresent formatShow = FormatValuePresent.Normal,
  15. required int flex,
  16. bool isShowCCCD = true,
  17. int indexRow = 0,
  18. bool notValidate = false,
  19. String icon = "",
  20. int? maxlength,
  21. required RxBool enabled,
  22. bool isShowView = true,
  23. bool isMinDateCurrent = false,
  24. String keyGetValueForShow = "MA",
  25. String keyGetValueForID = "MA",
  26. bool isDouble = false,
  27. TypeChildInputForm typeChildInput = TypeChildInputForm.datePicker,
  28. bool isLastRow = false,
  29. String keyGetListDataFormStart = '',
  30. dynamic style,
  31. bool isFirstRow = false,
})

Implementation

Control(
    {required this.title,
    required this.listData,
    required this.id,
    this.ocr = false,
    this.userbuy = false,
    required this.required,
    // required this.defaultValue,
    required this.typeInput,
    this.keyType = TextInputType.text,
    required this.value,
    this.context,
    this.isSearch = true,
    this.isShowDK = true,
    this.isShowDKiem = true,
    this.formatShow = FormatValuePresent.Normal,
    required this.flex,
    this.isShowCCCD = true,
    this.indexRow = 0,
    this.notValidate = false,
    this.icon = "",
    this.maxlength,
    required this.enabled,
    this.isShowView = true,
    this.isMinDateCurrent = false,
    this.keyGetValueForShow = "MA",
    this.keyGetValueForID = "MA",
    this.isDouble = false,
    this.typeChildInput = TypeChildInputForm.datePicker,
    // required this.visible,
    this.isLastRow = false,
    this.keyGetListDataFormStart = '',
    this.style,
    this.isFirstRow = false});