callSingle method

Future<Result> callSingle(
  1. String procedure, {
  2. List? arguments,
  3. Map<String, dynamic>? argumentsKeywords,
  4. CallOptions? options,
  5. Completer<String>? cancelCompleter,
})

This calls a procedure and waits for the final non-progressive Result. Progressive interim results are ignored; use call when the caller needs the stream.

Implementation

Future<Result> callSingle(
  String procedure, {
  List<dynamic>? arguments,
  Map<String, dynamic>? argumentsKeywords,
  CallOptions? options,
  Completer<String>? cancelCompleter,
}) {
  return callSingleWithLazyPayload(
    procedure,
    payload: LazyMessagePayload.materialized(
      arguments: arguments,
      argumentsKeywords: argumentsKeywords,
    ),
    options: options,
    cancelCompleter: cancelCompleter,
  );
}