toKebabCase method

String toKebabCase()

Converts string to kebab-case. Example: "Edit Item""edit-item"

Implementation

String toKebabCase() {
  return _splitWords().join('-').toLowerCase();
}