confirmHint method

String confirmHint(
  1. BuildContext context,
  2. InputField field
)

Returns the hint text used for confirmation fields where the user is asked to re-enter information prior to form submission.

Implementation

String confirmHint(BuildContext context, InputField field) {
  final fieldName = AuthenticatorLocalizations.inputsOf(context).password;
  final lowercasedFieldName = fieldName.toLowerCase();
  return AuthenticatorLocalizations.inputsOf(
    context,
  ).promptRefill(lowercasedFieldName);
}