invokeScriptLines method

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

Invoke a script and return result as a row of CSV response.

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<List<dynamic>>> invokeScriptLines(String scriptId,
    {Map<String, Object>? params}) async {
  return _invokeScript(scriptId, params: params).then((value) =>
      utf8.decoder.bind(value.stream).transform(CsvToListConverter()));
}