appendEvent method
Appends an event to a given session.
Throws a http.ClientException if there were problems communicating with
the API service. Throws a ServiceException if the API method failed for
any reason.
Implementation
@override
Future<AppendEventResponse> appendEvent(AppendEventRequest request) async {
if (isClosed) throw StateError('Service is closed');
if (_appendEvent case final appendEvent?) {
return appendEvent(request);
}
throw UnsupportedError('appendEvent');
}