Open tcrasset opened 3 years ago
We could have one different Class for each GoalType.
GoalType
Also, a different class for all the kinds of MoneyTransactions, so that we could make the add/delete Transactions have less if else statements.
--> This is not the strategy pattern
This can be coupled with #36, which uses the Factory pattern (we can use Factory constructors in Dart).
Actually, the strategy pattern is not the thing that we want for transactions.
We could have one different Class for each
GoalType
.--> This is not the strategy pattern