pluralize method

String pluralize()

Convert a string into plural form.

Implementation

String pluralize() {
  if (this == null) {
    throw ArgumentError('string: $this');
  }
  if (this!.isEmpty) {
    return '';
  }
  return '${this!}s';
}