toSnakeCase method

String toSnakeCase()

Implementation

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