deleteEvent method
Future deleteEvent (String eventId)
<p>This function is used to delete the event.</p> <p><strong>params</strong>:</p> <ul> <li><code>eventId</code>: id of an event</li> </ul> <p><strong>returns</strong>:</p> <ul> <li><code>Future<dynamic></code>: Information about the event deletion</li> </ul>
Implementation
Future\<dynamic\> deleteEvent(String eventId) async \{
navigationService.pushDialog(
const CustomProgressDialog(key: Key('DeleteEventProgress')),
);
final tokenResult = await _dbFunctions
.refreshAccessToken(userConfig.currentUser.refreshToken!);
debugPrint(tokenResult.toString());
final result = await _dbFunctions.gqlAuthMutation(
EventQueries().deleteEvent(eventId),
);
navigationService.pop();
return result;
\}