completeSession method
Complete the session on the backend and mark the flow as finished.
Implementation
Future<void> completeSession() async {
_loading = true;
notifyListeners();
try {
await _apiService.completeSession();
_loading = false;
finish();
} catch (e) {
_loading = false;
fail(e.toString());
}
}