completeAction method
- int id
Complete an action
Used so a user can set an action as completed
Implementation
Future completeAction(int id) async {
await _apiService.postRequest('v1/users/me/actions/$id/complete');
// Update user after request
await locator<AuthenticationService>().fetchUser();
}