toListOfMaps method
Creates a List<Map<String, dynamic>>
representation of this list.
This can be useful for saving the list in a database.
Implementation
List<Map<String, dynamic>> toListOfMaps() {
sort();
return isEmpty
? []
: [
for (final MoneyTransaction transaction in this)
transaction.toMap(),
];
}