TextField constructor
const
TextField({
- required Key id,
- required String value,
- String placeholder = '',
- ValueChanged<
String> ? onChanged, - VoidCallback? onSubmit,
- bool obscure = false,
- bool validate()?,
- Style? focusedStyle,
- Style? unfocusedStyle,
- BorderStyle? border,
- TextFieldState? state,
Implementation
const TextField({
required this.id,
required this.value,
this.placeholder = '',
this.onChanged,
this.onSubmit,
this.obscure = false,
this.validate,
this.focusedStyle,
this.unfocusedStyle,
this.border,
this.state,
});