Campaign class
- Inheritance
-
- Object
- Explorable
- ListCampaign
- Campaign
- Annotations
Constructors
-
Campaign({required int id, required String title, required String headerImage, required String shortName, required bool completed, required ListCause cause, DateTime? startDate, DateTime? endDate, String? videoLink, required String description, required List<
ListCauseAction> actions, required List<LearningResource> learningResources, List<Organisation> generalPartners = const [], List<Organisation> campaignPartners = const [], List<String> keyAims = const []}) -
Campaign.fromJson(Map<
String, dynamic> data) -
factory
Properties
-
actions
→ List<
ListCauseAction> -
final
-
campaignPartners
→ List<
Organisation> -
final
- cause → ListCause
-
The cause that this campaign is part of
finalinherited
- completed → bool
-
Has the user completed this campaign
finalinherited
- description → String
-
final
- endDate → DateTime?
-
finalinherited
-
generalPartners
→ List<
Organisation> -
final
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- headerImage → String
-
Url of header image
finalinherited
- id → int
-
API id for header image
finalinherited
- isPast → bool
-
Returns whether the campaign has ended
read-onlyinherited
-
keyAims
→ List<
String> -
final
-
learningResources
→ List<
LearningResource> -
final
- numberOfActionsCompleted → int
-
final
- numberOfCampaigners → int
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- shortName → String
-
finalinherited
- startDate → DateTime?
-
finalinherited
- title → String
-
finalinherited
- videoLink → String?
-
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited