CTextField constructor
const
CTextField({
- Key? key,
- bool enable = true,
- CValidationResult? validator(
- String? value
- String? label,
- String? hint,
- String? description,
- TextEditingController? controller,
- TextInputType? keyboardType,
- FocusNode? focusNode,
- bool obscureText = false,
- Widget? suffixIcon,
- Widget? prefixIcon,
- void onTap()?,
- void onEditingComplete()?,
- void onChanged()?,
- void onSubmitted()?,
- String obscuringCharacter = '•',
- bool readOnly = false,
- bool? showCursor,
- bool autofocus = false,
- bool autocorrect = true,
- bool enableSuggestions = true,
- TextCapitalization textCapitalization = TextCapitalization.none,
- TextDirection? textDirection,
- ToolbarOptions? toolbarOptions,
- Brightness? keyboardAppearance,
- ScrollController? scrollController,
- ScrollPhysics? scrollPhysics,
- Iterable<
String> ? autofillHints, - List<
TextInputFormatter> ? inputFormatters, - 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);