camel static method

String camel(
  1. String text
)

Convert a string to camelCase

Implementation

static String camel(String text) {
  final parts = text.split(RegExp(r'[_\s-]+'));
  return parts.first.toLowerCase() +
      parts.skip(1).map((w) => capitalize(w.toLowerCase())).join();
}