toKebabCase function

String toKebabCase(
  1. String input
)

Implementation

String toKebabCase(String input) => splitCamelCase(input)
    .map((s) => s.toLowerCase())
    .join(_kebabCaseSeparator)
    .replaceAll(_snakeCaseSeparator, _kebabCaseSeparator);