FieldDefault constructor

const FieldDefault({
  1. Key? key,
  2. TextEditingController? controller,
  3. String? title,
  4. required String hint,
  5. ValidationType? validationType,
  6. String? validatorMessage,
  7. String? valuePassword2,
  8. TextInputAction? textInputAction = TextInputAction.next,
  9. TextInputType? textInputType = TextInputType.text,
  10. EdgeInsets margin = const EdgeInsets.fromLTRB(0, 0, 0, 20),
  11. bool obscureText = false,
  12. bool readOnly = false,
  13. dynamic onChanged(
    1. String
    )?,
  14. Function? onTap,
  15. int maxLines = 1,
  16. int minLines = 1,
  17. int? maxLength,
  18. Widget? suffixIcon,
  19. bool isDatePicker = false,
  20. bool isWithNumberFormatter = false,
  21. bool isWithNpwpFormatter = false,
  22. String? validator(
    1. String?
    )?,
  23. String? counterText,
  24. TextCapitalization? textCapitalization,
  25. int? minLength,
})

Implementation

const FieldDefault({
  super.key,
  this.controller,
  this.title,
  required this.hint,
  this.validationType,
  this.validatorMessage,
  this.valuePassword2,
  this.textInputAction = TextInputAction.next,
  this.textInputType = TextInputType.text,
  this.margin = const EdgeInsets.fromLTRB(0, 0, 0, 20),
  this.obscureText = false,
  this.readOnly = false,
  this.onChanged,
  this.onTap,
  this.maxLines = 1,
  this.minLines = 1,
  this.maxLength,
  this.suffixIcon,
  this.isDatePicker = false,
  this.isWithNumberFormatter = false,
  this.isWithNpwpFormatter = false,
  this.validator,
  this.counterText,
  this.textCapitalization,
  this.minLength,
});