PluralRule class

A PluralRule checks if a condition (PluralPredicate) applies for an singular noun. If so, the singular noun can be converted to the plural form using a PluralConverter This class has several static methods that are part of a fluent interface See PluralRules for implementations

Constructors

PluralRule(PluralPredicate _predicate, PluralConverter _converter)

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

appliesTo(String noun) bool
convertToPluralNoun(String singularNoun) String
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited