xirr_flutter 1.0.2
xirr_flutter: ^1.0.2 copied to clipboard
Flutter implementation of xirr with bonus Newton-Raphson implementation
Deposit/Investment should be provided with negative amount and withdrawals should be provided with positive amount.
List<Transaction> transactions = [];
transactions.add(Transaction.withStringDate(-1000, "2010-01-01"));
transactions.add(Transaction.withStringDate(1100, "2011-01-01"));
final double? result =
XirrFlutter.withTransactions(transactions).calculate();
expect(result, 0.10);