toKebabCase property

String get toKebabCase

Converts to kebab-case.

Implementation

String get toKebabCase =>
    trim().replaceAll(RegExp(r'\s+'), '-').toLowerCase();