InputField.password constructor
InputField.password({
- Key? key,
- TextEditingController? controller,
- String hintText = 'Password',
- ValueChanged<
String> ? onChanged, - ValueChanged<
String> ? onSubmitted, - String? errorText,
- bool enabled = true,
🔍 Named constructor
Implementation
factory InputField.password({
Key? key,
TextEditingController? controller,
String hintText = 'Password',
ValueChanged<String>? onChanged,
ValueChanged<String>? onSubmitted,
String? errorText,
bool enabled = true,
}) {
return InputField(
key: key,
controller: controller,
hintText: hintText,
obscureText: true,
prefixIcon: Icons.lock_outline,
keyboardType: TextInputType.visiblePassword,
textInputAction: TextInputAction.done,
onChanged: onChanged,
onSubmitted: onSubmitted,
errorText: errorText,
enabled: enabled,
);
}