ScriptsRegistry constructor

ScriptsRegistry(
  1. JsonMap scriptsMap, {
  2. Future<int> runCommand(
    1. String
    )?,
})

Constructs a ScriptsRegistry from a JsonMap.

Implementation

ScriptsRegistry(
  JsonMap scriptsMap, {
  Future<int> Function(String)? runCommand,
}) : scripts = scriptsMap,
     _runCommand = runCommand ?? bindings.runScript;