Transaction constructor

Transaction(
  1. double amount,
  2. DateTime when
)

Construct a Transaction instance with the given amount at the given day. @param amount the amount transferred @param when the day the transaction took place

Implementation

Transaction(this.amount, this.when);