Sum class

Sum of money.

Inheritance
Implemented types
Available extensions

Constructors

Sum(double val)
const
Sum.fromJson(String val)
Constructs a Sum from the provided val.
factory

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
val double
Actual value wrapped by this NewType.
finalinherited

Methods

compareTo(Sum other) int
Compares this object to another object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() String
Returns a String representing this Sum.
toPlainString() String

Available on NewType<double>, provided by the NewTypeToExactString extension

Converts this NewType to a String with no scientific notation.
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

parse(String val) Sum
Parses the provided val as a Sum.