kebabCase function

String kebabCase(
  1. String text
)

Convert to kebab-case.

Implementation

String kebabCase(String text) {
  return _splitWords(text).map((w) => w.toLowerCase()).join('-');
}