Profile class

A container for a series of cash in-flows and out-flows.

Constructors

Profile({required List<CashFlow> cashFlows, int precision = 2, Convention dayCount = const US30360()})
Instantiates a profile instance and performs basic validation.

Properties

cashFlows List<CashFlow>
The cash flow series.
final
dayCount → Convention
The day count convention applied to cash flows in the series.
final
firstDrawdownPostDate DateTime
The post date of the first drawdown. Analogous to a contract date.
latefinal
firstDrawdownValueDate DateTime
The value date of the first drawdown. This date is expected to occur on or after the drawdown post date and is used specifically in deferred settlement calculations.
latefinal
hashCode int
The hash code for this object.
no setterinherited
precision int
The number of fractional digits to apply in the rounding of cash flow values.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

copyWith({List<CashFlow>? cashFlows, int? precision, Convention? dayCount}) Profile
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