Calculator class

The calculator class provides the entry point for solving unknown values and/or unknown interest rates implicit in a cash flow series.

Constructors

Calculator({int precision = 2, Profile? profile})
Instantiates a calculator instance.

Properties

hashCode int
The hash code for this object.
no setterinherited
precision int
Returns the number of fractional digits used in the rounding of cash flow values.
no setter
profile Profile?
Returns a reference to the cash flow profile.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
series List<Series>
Returns a reference to series current state.
no setter

Methods

add(Series series) → void
Adds a cash flow series item to the series array.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
solveRate({required Convention dayCount}) Future<double>
Solves for an unknown interest rate, returning the result expressed as a decimal.
solveValue({required Convention dayCount, required double interestRate}) Future<double>
Solves for an unknown value or values.
toString() String
A string representation of this object.
inherited

Operators

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