createChunk method
Creates a Chunk.
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<Chunk> createChunk(CreateChunkRequest request) async {
if (isClosed) throw StateError('Service is closed');
if (_createChunk case final createChunk?) {
return createChunk(request);
}
throw UnsupportedError('createChunk');
}