toKebabCase property
String
get
toKebabCase
Converts the string to kebab-case (dash-case, lisp-case, spinal-case). Example: "helloWorld" => "hello-world"
Implementation
String get toKebabCase => toWords.join('-').toLowerCase();