snakeCase static method

String? snakeCase(
  1. String? text, {
  2. String separator = '_',
})

snake_case

Implementation

static String? snakeCase(String? text, {String separator = '_'}) {
  if (isNullOrBlank(text)!) {
    return null;
  }
  return _groupIntoWords(text!)
      .map((word) => word.toLowerCase())
      .join(separator);
}