buildPassword method

Widget buildPassword(
  1. String key,
  2. TextEditingController controller,
  3. dynamic onChanged(
    1. String?
    ),
  4. String? validator(
    1. String?
    ),
)

Implementation

Widget buildPassword(
  String key,
  TextEditingController controller,
  Function(String?) onChanged,
  String? Function(String?) validator,
) {
  var inputDecoration =
      options.inputDecorationField?[key] ?? options.inputDecoration;

  return FlutterFormInputPassword(
    controller: controller,
    style: options.inputTextStyle,
    decoration: inputDecoration,
    onChanged: onChanged,
    enabled: !options.readOnly,
    validator: (value) =>
        validator(value) ?? options.validators?[key]?.call(value),
  );
}