toSnakeCase method
Implementation
String toSnakeCase() {
return replaceAllMapped(RegExp(r'[A-Z]'), (Match match) {
return '_${match[0]!.toLowerCase()}';
}).replaceFirst(RegExp(r'^_'), '');
}
String toSnakeCase() {
return replaceAllMapped(RegExp(r'[A-Z]'), (Match match) {
return '_${match[0]!.toLowerCase()}';
}).replaceFirst(RegExp(r'^_'), '');
}