toKebabCase method
Converts the string to kebab-case.
Example:
'helloWorld'.toKebabCase(); // 'hello-world'
Implementation
String toKebabCase() =>
words().map((String word) => word.toLowerCase()).join('-');
Converts the string to kebab-case.
Example:
'helloWorld'.toKebabCase(); // 'hello-world'
String toKebabCase() =>
words().map((String word) => word.toLowerCase()).join('-');