GPasswordField constructor

GPasswordField({
  1. Key? key,
  2. required TextEditingController controller,
  3. String labelText = 'Password',
  4. String? hintText,
  5. TextInputAction? textInputAction,
  6. List<TextInputFormatter>? inputFormatters,
  7. String? validator(
    1. String?
    )?,
  8. void onChanged(
    1. String
    )?,
})

Implementation

GPasswordField({
  super.key,
  required TextEditingController controller,
  String labelText = 'Password',
  String? hintText,
  TextInputAction? textInputAction,
  List<TextInputFormatter>? inputFormatters,
  String? Function(String?)? validator,
  void Function(String)? onChanged,
}) : super(
       config: GFieldConfig(
         controller: controller,
         labelText: labelText,
         hintText: hintText ?? 'Enter your password',
         keyboardType: TextInputType.visiblePassword,
         textInputAction: textInputAction ?? TextInputAction.done,
         inputFormatters: inputFormatters,
         validator: validator,
         onChanged: onChanged,
         prefixIcon: Icons.lock,
       ),
     );