camelCase property

String get camelCase

camelCase from all case

Implementation

String get camelCase {
  if (contains('_')) {
    var temp = toLowerCase();
    return temp.replaceAllMapped(
      RegExp(r'(_\w)'),
      (m) => m[0]!.substring(1).toUpperCase(),
    );
  }
  return this;
}