pluralizeIf method

String pluralizeIf(
  1. bool condition
)

Implementation

String pluralizeIf(bool condition) {
  if (_pluralStopWords.any((s) => this.toLowerCase().endsWith(s) == true)) {
    return this;
  }
  return condition ? inflection.pluralize(this) : this;
}