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