NicePlural class

Helper for pluralized strings

Constructors

NicePlural()

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

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

Static Methods

get(int count, {required String zero, required String one, required String few, required String many, required String other, String? locale}) String
Get pluralized form based on count
simple(int count, String singular, [String? plural]) String
Simple English plural