camelize function

String camelize(
  1. String str
)

Implementation

String camelize(String str) {
  // variables
  if (str.startsWith('--')) {
    return str;
  }
  return str.replaceAllMapped(_camelCaseReg, (match) {
    String subStr = match[0]!.substring(1);
    return subStr.isNotEmpty ? subStr.toUpperCase() : '';
  });
}