CausesService class

Constructors

CausesService()

Properties

hashCode int
The hash code for this object.
read-onlyinherited
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

completeAction(int id) Future
Complete an action
completeLearningResource(int id) Future
Complete a learning resource
getAction(int id) Future<CampaignAction>
Get an action by id
getActions({Map<String, dynamic>? params}) Future<List<ListCauseAction>>
Get a list of actions
getCampaign(int id) Future<Campaign>
Get a campaign by id
getCampaigns({Map<String, dynamic>? params}) Future<List<ListCampaign>>
Get a list of campaigns
getCauses({Map<String, dynamic>? params}) Future<List<ListCause>>
Get a list of causes
getLearningResources({Map<String, dynamic>? params}) Future<List<LearningResource>>
Get a list of learnig resources
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeActionStatus(int id) Future
Uncomlete an action
selectCauses(List<ListCause> selectedCauses) Future<void>
Set user's selected causes
toString() String
A string representation of this object.
inherited

Operators

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