MoneyFormatter class

FlutterMoneyFormatter instance

Constructors

MoneyFormatter({required double amount, MoneyFormatterSettings? settings})
Init instance of FlutterMoneyFormatter

Properties

amount double
Amount number that will be formatted.
getter/setter pair
comparator MoneyFormatterCompare
Comparator
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
output MoneyFormatterOutput
Returns compiled and formatted output in several formats.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
settings MoneyFormatterSettings?
The formatter settings
getter/setter pair

Methods

copyWith({double? amount, String? symbol, String? thousandSeparator, String? decimalSeparator, int? fractionDigits, String? symbolAndNumberSeparator, CompactFormatType? compactFormatType}) MoneyFormatter
Copies current instance and change some values to the new instance.
fastCalc({required FastCalcType type, required double amount}) MoneyFormatter
returns FlutterMoneyFormatter after calculating amount.
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