pluralize method
Convert a string into plural form.
Implementation
String pluralize() {
if (this == null) {
throw ArgumentError('string: $this');
}
if (this!.isEmpty) {
return '';
}
return '${this!}s';
}
Convert a string into plural form.
String pluralize() {
if (this == null) {
throw ArgumentError('string: $this');
}
if (this!.isEmpty) {
return '';
}
return '${this!}s';
}