toCamelCase method

String toCamelCase()

Implementation

String toCamelCase() {
  if (this == null) {
    return '';
  }
  return this!.replaceAllMapped(RegExp(r'(^|[_\s])(\w)'),
      (Match match) => match.group(2)!.toUpperCase());
}