MoneyEntity class
A money entity extracted from text.
Constructors
- MoneyEntity(String rawValue, {required int fractionPart, required int integerPart, required String unnormalizedCurrency})
- Constructor to create an instance of MoneyEntity.
Properties
- fractionPart → int
-
The fractional part of the detected annotation. This is the integer written to the right of the decimal separator.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- integerPart → int
-
The integer part of the detected annotation. This is the integer written to the left of the decimal separator.
final
- rawValue → String
-
The string representation of the entity.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- type → EntityType
-
The type of an extracted entity.
finalinherited
- unnormalizedCurrency → String
-
The currency part of the detected annotation. No formatting is applied so this will return a subset of the initial string.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited