Skip to content
Related Articles
Get the best out of our app
GFG App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Dart – Convert All Characters of a String in Lowercase

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

With the help of the toLowerCase() method in the string will convert all the characters in a string in lowercase.

Syntax: String.toLowerCase() 
 

Return: string 
 

Example 1: 
 

Dart




// main function start
void main() {
   
   // initialise a string
   String st = "GEEKSFORGEEKS";
    
   // print the string in lowercase
   print(st.toLowerCase());
     
}


Output:

geeksforgeeks

Example 2: 

Dart




// main function start
void main() {
   
   // initialise a string
   String st = "Computer Science";
    
   // print the string in lowercase
   print(st.toLowerCase());
     
}


 
 

Output:

computer science
My Personal Notes arrow_drop_up
Last Updated : 16 Jul, 2021
Like Article
Save Article
Similar Reads