Dart言語 toUpperCaseでアルファベットの文字列を大文字に変換する

環境
Windows11 pro 64bit
Dart 2.18.1

構文
対象文字列.toUpperCase()
toUpperCase関数を使って、アルファベットの文字列を大文字に変換します。

使用例

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
void main() {
String tt = 'study';
print(tt.toUpperCase());
}
void main() { String tt = 'study'; print(tt.toUpperCase()); }
void main() {
   String tt = 'study';

  print(tt.toUpperCase());
}

実行結果
STUDY

Dart

Posted by arkgame