toKebabCase method
Converts to kebab-case.
'HelloWorld'.toKebabCase(); // 'hello-world'
'someHTTPResponse'.toKebabCase(); // 'some-http-response'
Implementation
String toKebabCase() => _words.map((w) => w.toLowerCase()).join('-');
Converts to kebab-case.
'HelloWorld'.toKebabCase(); // 'hello-world'
'someHTTPResponse'.toKebabCase(); // 'some-http-response'
String toKebabCase() => _words.map((w) => w.toLowerCase()).join('-');