📜  首字母大写颤动 - 无论代码示例

📅  最后修改于: 2022-03-11 14:56:53.695000             🧑  作者: Mango

代码示例3
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(" ");
}