toSnakeCase method

String toSnakeCase()

Implementation

String toSnakeCase() {
  final words = getWords();
  return words.map((e) => e.toLowerCase()).join('_');
}