tableize method
Converts a string into a table name.
Implementation
String tableize() {
if (this == null) {
throw ArgumentError('string: $this');
}
if (this!.isEmpty) {
return '';
}
return this!.pluralize().underscore();
}
Converts a string into a table name.
String tableize() {
if (this == null) {
throw ArgumentError('string: $this');
}
if (this!.isEmpty) {
return '';
}
return this!.pluralize().underscore();
}