VOOZH about

URL: https://www.geeksforgeeks.org/dart/dart-string-touppercase-function-with-examples/

⇱ Dart - String toUpperCase() Function with Examples - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Dart - String toUpperCase() Function with Examples

Last Updated : 7 Apr, 2025

The string toUpperCase() method converts all characters of the string into an uppercase letter. The string toUpperCase() function returns the string after converting all characters of the string into the uppercase letter. 

Syntax:

Str.toUpperCase()
  • Parameter: The string toUpperCase() function doesn't accept any parameter.
  • Return Value: The string toUpperCase() function returns the string after converting all characters of the string into the uppercase letter.

Image Representation:

👁 Uppercase


Example 1 : 


Output: 

GEEKS
FOR GEEKS


Example 2 : 


Output: 

COMPUTER
LAPTOP
Comment
Article Tags:
Article Tags:

Explore