invokeScript method

Future<Stream<FluxRecord>> invokeScript(
  1. String scriptId, {
  2. Map<String, Object>? params,
})

Invoke a script and return result as a stream of FluxRecord.

Parameters:

  • String scriptId: The ID of the script to invoke. (required)
  • Map<String, Object> params: Represents key/value pairs parameters to be injected into script

Implementation

Future<Stream<FluxRecord>> invokeScript(String scriptId,
    {Map<String, Object>? params}) async {
  return _invokeScript(scriptId, params: params).then((value) => utf8.decoder
      .bind(value.stream)
      .transform(CsvToListConverter())
      .transform(FluxTransformer(responseMode: FluxResponseMode.onlyNames)));
}