Open In App

Dart - Convert All Characters of a String in Lowercase

Last Updated : 07 Apr, 2025
Comments
Improve
Suggest changes
Like Article
Like
Report

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 

Image Representation:

lowercase


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

Next Article
Article Tags :

Similar Reads