NumberWord class

Utility class that exposes methods to convert numbers / prices into polish words.

final nw = NumberWord();`
final n = 567;
print('$n -> ${nw.intToWord(n)}'); // 567 -> pięćset sześćdziesiąt siedem
print('w sumie: ${n/100} PLN, słownie: ${nw.translatePrice(n/100)}'); // w sumie: 5.67 PLN, słownie: pięć złotych, sześćdziesiąt siedem groszy

Constructors

NumberWord()

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

intToWord(int number) String
Returns given number as polish words
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
translate(int number) String
Returns given number as polish words
translatePrice(num price, [int? decimalPart, bool? isNegative]) String
Returns given amount of money as polish words

Operators

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