TrackedDonation class

This class stores the data of a single tracked donation

Constructors

TrackedDonation({int id, int amount, String dateRecorded, bool donationProcessed})
Constructor for a tracked donation with an ID
TrackedDonation.fromMap(Map<String, dynamic> map)
Generate an instance of TrackedDonation from a map, used when retrieving data from the database
TrackedDonation.withoutId({int amount, String dateRecorded, bool donationProcessed})
Constructor for a tracked donation without an ID

Properties

amount int
read / write
columnAmount String
final
columnDateString String
final
columnDonationProcessed String
final
columnId String
final
dateRecorded String
read / write
donationProcessed bool
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
id int
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toMap() Map<String, dynamic>
Generates a map from a TrackedDonation object, used when writing data to the database
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited