toSnakeCase method
Converts the string to snake_case.
Implementation
String toSnakeCase() {
final noUpperCase = isUpperCase ? toLowerCase() : this;
return noUpperCase._extractLowercaseComponents().join('_');
}
Converts the string to snake_case.
String toSnakeCase() {
final noUpperCase = isUpperCase ? toLowerCase() : this;
return noUpperCase._extractLowercaseComponents().join('_');
}