String toUpperCase() Method

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
string touppercase() method

In this guide, we will discuss the String toUpperCase() Method in Dart Programming Language. Returns a new string by converting all characters in the given string to the upper case.

Syntax

String.toUpperCase()

Return Type

Returns a string.

Example

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

It will produce the following output −.

ABC 
HELLO

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply