slugify static method
Create a slug from a string
Implementation
static String slugify(String input) {
return input
.toLowerCase()
.trim()
.replaceAll(RegExp(r'[^\w\s-]'), '')
.replaceAll(RegExp(r'[\s_]+'), '-')
.replaceAll(RegExp(r'-+'), '-')
.replaceAll(RegExp(r'^-+|-+$'), '');
}