Answers for "dart convert a capital string to lowercase"

6

string to capital letter dart

extension CapExtension on String {
  String get inCaps => '${this[0].toUpperCase()}${this.substring(1)}';
  String get allInCaps => this.toUpperCase();
  String get capitalizeFirstofEach => this.split(" ").map((str) => str.capitalize).join(" ");
}

final helloWorld = 'hello world'.inCaps; // 'Hello world'
final helloWorld = 'hello world'.allInCaps; // 'HELLO WORLD'
final helloWorld = 'hello world'.capitalizeFirstofEach; // 'Hello World'
Posted by: Guest on August-30-2020
4

dart to lowercase

void main() { 
   String uStr = "ABC"; 
   String lStr = "hello"; 
   print(uStr.toLowerCase()); 
   print(lStr.toLowerCase()); 
}
Posted by: Guest on November-13-2021
0

lowercase in dart

'ALPHABET'.toLowerCase(); // 'alphabet'
'abc'.toLowerCase();      // 'abc'
Posted by: Guest on June-18-2021

Code answers related to "dart convert a capital string to lowercase"

Code answers related to "Swift"

Browse Popular Code Answers by Language