toKebabCase method

String toKebabCase()

Converts to kebab-case.

'HelloWorld'.toKebabCase(); // 'hello-world'
'someHTTPResponse'.toKebabCase(); // 'some-http-response'

Implementation

String toKebabCase() => _words.map((w) => w.toLowerCase()).join('-');