String toLowerCase (), méthode

Renvoie une nouvelle chaîne en convertissant tous les caractères de la chaîne donnée en minuscules.

Syntaxe

String.toLowerCase()

Type de retour

Renvoie une chaîne.

Exemple

void main() { 
   String uStr = "ABC"; 
   String lStr = "hello"; 
   print(uStr.toLowerCase()); 
   print(lStr.toLowerCase()); 
}

Il produira ce qui suit output -.

abc 
hello