capitalizeAndLowercase function

String capitalizeAndLowercase(
  1. String string
)

Capitalize the first character of the string and lowercase the others (using toUpperCase() and toLowerCase() respectively).

Implementation

String capitalizeAndLowercase(String string) => string.capitalizeAndLowercase();