toFirstCapital method
for only first letter of string will capital example: "this is a boy".toFirstCapital() => "This is a boy".
Implementation
String toFirstCapital() =>
"${this[0].toUpperCase()}${this.substring(1).toLowerCase()}";
for only first letter of string will capital example: "this is a boy".toFirstCapital() => "This is a boy".
String toFirstCapital() =>
"${this[0].toUpperCase()}${this.substring(1).toLowerCase()}";