CTextField constructor

const CTextField({
  1. Key? key,
  2. bool enable = true,
  3. CValidationResult? validator(
    1. String? value
    )?,
  4. String? label,
  5. String? hint,
  6. String? description,
  7. TextEditingController? controller,
  8. TextInputType? keyboardType,
  9. FocusNode? focusNode,
  10. bool obscureText = false,
  11. Widget? suffixIcon,
  12. Widget? prefixIcon,
  13. void onTap()?,
  14. void onEditingComplete()?,
  15. void onChanged(
    1. String
    )?,
  16. void onSubmitted(
    1. String
    )?,
  17. String obscuringCharacter = '•',
  18. bool readOnly = false,
  19. bool? showCursor,
  20. bool autofocus = false,
  21. bool autocorrect = true,
  22. bool enableSuggestions = true,
  23. TextCapitalization textCapitalization = TextCapitalization.none,
  24. TextDirection? textDirection,
  25. ToolbarOptions? toolbarOptions,
  26. Brightness? keyboardAppearance,
  27. ScrollController? scrollController,
  28. ScrollPhysics? scrollPhysics,
  29. Iterable<String>? autofillHints,
  30. List<TextInputFormatter>? inputFormatters,
  31. bool isRequired = false,
})

Implementation

const CTextField({
  Key? key,
  this.enable = true,
  this.validator,
  this.label,
  this.hint,
  this.description,
  this.controller,
  this.keyboardType,
  this.focusNode,
  this.obscureText = false,
  this.suffixIcon,
  this.prefixIcon,
  this.onTap,
  this.onEditingComplete,
  this.onChanged,
  this.onSubmitted,
  this.obscuringCharacter = '•',
  this.readOnly = false,
  this.showCursor,
  this.autofocus = false,
  this.autocorrect = true,
  this.enableSuggestions = true,
  this.textCapitalization = TextCapitalization.none,
  this.textDirection,
  this.toolbarOptions,
  this.keyboardAppearance,
  this.scrollController,
  this.scrollPhysics,
  this.autofillHints,
  this.inputFormatters,
  this.isRequired = false,
}) : super(key: key);