kebabize function

String kebabize(
  1. String str
)

Implementation

String kebabize(String str) {
  return str.replaceAllMapped(kebabCaseReg, (match) => '-${match[0]!.toLowerCase()}');
}