hyphenate function

String hyphenate(
  1. String s
)

Returns the hyphenated form of s.

The string is also made lower case.

Implementation

String hyphenate(String s) => _split(s).join('-').toLowerCase();