call static method

Future call(
  1. String functionName, {
  2. List? positional,
  3. Map<String, dynamic>? named,
  4. Duration timeout = const Duration(seconds: 10),
})

Call a registered Python function by name, returning the result only.

Implementation

static Future<dynamic> call(
  String functionName, {
  List<dynamic>? positional,
  Map<String, dynamic>? named,
  Duration timeout = const Duration(seconds: 10),
}) async {
  final response = await callWithMeta(
    functionName,
    positional: positional,
    named: named,
    timeout: timeout,
  );
  return response.result;
}