autocapitalize function

Attribute<GlobalHTMLAttribute> autocapitalize(
  1. String value
)

Controls whether and how text input is automatically capitalized as it is entered/edited by the user. It can have the following values:

  • off or none, no autocapitalization is applied (all letters default to lowercase)
  • on or sentences, the first letter of each sentence defaults to a capital letter; all other letters default to lowercase
  • words, the first letter of each word defaults to a capital letter; all other letters default to lowercase
  • characters, all letters should default to uppercase

Implementation

Attribute<GlobalHTMLAttribute> autocapitalize(String value) {
  return Attribute('autocapitalize', value);
}