User constructor
User(- {required int id,
- required String? email,
- required List<int> selectedCauseIds,
- required List<int> completedCampaignIds,
- required List<int> completedActionIds,
- required List<int> completedLearningResourceIds,
- String? fullName,
- DateTime? dateOfBirth,
- String? location,
- double? monthlyDonationLimit,
- bool? homeOwner,
- dynamic points,
- dynamic organisation}
)
Implementation
User({
required this.id,
required this.email,
required this.selectedCauseIds,
required this.completedCampaignIds,
required this.completedActionIds,
required this.completedLearningResourceIds,
this.fullName,
this.dateOfBirth,
this.location,
this.monthlyDonationLimit,
this.homeOwner,
points,
organisation,
}) {
_organisation = organisation;
}