upperChar function

String upperChar(
  1. String str
)

Implementation

String upperChar(String str) {
  var _tmp = str.replaceAllMapped(RegExp("_([a-zA-Z])"), (match) {
    return match.group(1)?.toUpperCase() ?? '';
  });
  return changeFirstChar(_tmp);
}