getTextCapitalization method

TextCapitalization getTextCapitalization(
  1. String? value
)

Implementation

TextCapitalization getTextCapitalization(String? value) {
  value ??= "default";
  switch (value) {
    case "words":
      return TextCapitalization.words;
    case "sentences":
      return TextCapitalization.sentences;
    case "characters":
      return TextCapitalization.characters;
    default:
      return TextCapitalization.none;
  }
}