elicit method

Future<ElicitResult> elicit(
  1. ElicitRequest request
)

Sends an elicitation/create request to the client.

This method will only succeed if the client has advertised the elicitation capability.

Implementation

Future<ElicitResult> elicit(ElicitRequest request) async {
  if (!supportsElicitation) {
    throw StateError('Client does not support elicitation');
  }
  return sendRequest(ElicitRequest.methodName, request);
}