invoke method

Object? invoke(
  1. List<Object?> args
)

Invokes the adapter with direct component values.

Implementation

Object? invoke(List<Object?> args) {
  _requireMayLeaveForLower();
  _checkSyncInvokeSupported('direct value invocation', 'invokeAsync');
  _checkDirectInvokeSupported();
  final validatedArgs = _validateDirectArgs(args);
  final lowering = _openBorrowLowering();
  try {
    final directArgs = _lowerBorrowArguments(validatedArgs, lowering);
    final result = _callback(List<Object?>.unmodifiable(directArgs));
    return _validateDirectResult(result);
  } finally {
    lowering?.close();
  }
}