BytePluralization class abstract

Smart pluralization utilities for byte-related terms.

Handles singular/plural forms correctly for different languages and contexts.

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

format(num value, String singular, {String? plural, PluralizationOptions options = PluralizationOptions.defaults}) String
Formats a value with its pluralized unit.
optionsForLocale(String locale) PluralizationOptions
Creates options for a specific locale.
pluralize(String singular, {PluralizationOptions options = PluralizationOptions.defaults}) String
Pluralizes a singular word.
ruleForLocale(String locale) PluralizationRule
Returns the rule for a given locale.
shouldUseSingular(num value, {PluralizationOptions options = PluralizationOptions.defaults}) bool
Determines if singular form should be used for the given value.
unitFor(num value, String singular, {String? plural, PluralizationOptions options = PluralizationOptions.defaults}) String
Returns just the pluralized unit name without the value.