hint method

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

Returns the label displayed as the input hint.

Implementation

String hint(BuildContext context, InputField field) {
  final fieldName = title(context, field);
  final lowercasedFieldName = fieldName.toLowerCase();
  return AuthenticatorLocalizations.inputsOf(
    context,
  ).promptFill(lowercasedFieldName);
}