InputField constructor
const
InputField({
- Key? key,
- TextEditingController? controller,
- String? initialValue,
- String? hintText,
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - TextInputType? keyboardType,
- TextInputAction? textInputAction,
- bool obscureText = false,
- bool readOnly = false,
- bool enabled = true,
- IconData? prefixIcon,
- IconData? suffixIcon,
- VoidCallback? onSuffixTap,
- String? errorText,
- List<
TextInputFormatter> ? inputFormatters,
Implementation
const InputField({super.key,
this.controller,
this.initialValue,
this.hintText,
this.onChanged,
this.onSubmitted,
this.keyboardType,
this.textInputAction,
this.obscureText = false,
this.readOnly = false,
this.enabled = true,
this.prefixIcon,
this.suffixIcon,
this.onSuffixTap,
this.errorText,
this.inputFormatters,
}) : assert(
controller == null || initialValue == null,
'Cannot provide both controller and initialValue',
);