MoneyRecord constructor

const MoneyRecord({
  1. required int id,
  2. required MoneyMode mode,
  3. required int userId,
  4. required DateTime date,
  5. required int categoryId,
  6. required int amount,
  7. int? genreId,
  8. int? toAccountId,
  9. int? fromAccountId,
  10. int? receiptId,
  11. String comment = '',
  12. String name = '',
  13. String place = '',
  14. String currencyCode = '',
  15. int active = 1,
  16. DateTime? created,
})

Creates a money record.

Implementation

const MoneyRecord({
  required this.id,
  required this.mode,
  required this.userId,
  required this.date,
  required this.categoryId,
  required this.amount,
  this.genreId,
  this.toAccountId,
  this.fromAccountId,
  this.receiptId,
  this.comment = '',
  this.name = '',
  this.place = '',
  this.currencyCode = '',
  this.active = 1,
  this.created,
});