EnglishNumberScheme class Null safety

Inheritance

Constructors

EnglishNumberScheme({bool addHyphens = false})

Properties

addHyphens bool
Decides if there will be hyphens ("-") between numbers like "eighty-one" or "seventy-three".
final
format NumberFormat
final
hashCode int
The hash code for this object.
read-only, inherited
maxDecimals int
The maximum amount of decimal values supported by the scheme.
final
maxNumber num
The largest number supported by the scheme.
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

hasComma(num number) bool
Checks if the given number has a comma. (3.04 -> true, 3 -> false)
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
removeDecimalZeros(num number) num
Removes all trailing zeros after a comma.
inherited
splitByComma(num number) Tuple2<num, num?>
Splits a given number by it's comma, if it has one. Returns both parts of the number if a comma is present, otherwise returns the original number and null.
inherited
toString() String
A string representation of this object.
inherited
toWord(num number) String
Converts a given number to a spelled out version of itself.
override

Operators

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