Nipodemos

put capitalize back in it's place

@@ -440,13 +440,6 @@ class GetUtils { @@ -440,13 +440,6 @@ class GetUtils {
440 return true; 440 return true;
441 } 441 }
442 442
443 - /// Uppercase first letter inside string and let the others lowercase  
444 - /// Example: your name => Your name  
445 - static String capitalizeFirst(String s) {  
446 - if (isNullOrBlank(s)) return null;  
447 - return s[0].toUpperCase() + s.substring(1).toLowerCase();  
448 - }  
449 -  
450 /// Capitalize each word inside string 443 /// Capitalize each word inside string
451 /// Example: your name => Your Name, your name => Your name 444 /// Example: your name => Your Name, your name => Your name
452 static String capitalize(String s) { 445 static String capitalize(String s) {
@@ -461,6 +454,13 @@ class GetUtils { @@ -461,6 +454,13 @@ class GetUtils {
461 return result.trim(); 454 return result.trim();
462 } 455 }
463 456
  457 + /// Uppercase first letter inside string and let the others lowercase
  458 + /// Example: your name => Your name
  459 + static String capitalizeFirst(String s) {
  460 + if (isNullOrBlank(s)) return null;
  461 + return s[0].toUpperCase() + s.substring(1).toLowerCase();
  462 + }
  463 +
464 /// Remove all whitespace inside string 464 /// Remove all whitespace inside string
465 /// Example: your name => yourname 465 /// Example: your name => yourname
466 static String removeAllWhitespace(String s) { 466 static String removeAllWhitespace(String s) {