slug static method
Ensures the string is a valid URL slug.
Implementation
static String? Function(String?) slug({
String errorMessage = 'Please enter a valid slug',
}) {
return _build(errorMessage, (v) => v.isSlug);
}
Ensures the string is a valid URL slug.
static String? Function(String?) slug({
String errorMessage = 'Please enter a valid slug',
}) {
return _build(errorMessage, (v) => v.isSlug);
}