startNodeWithScript method

  1. @override
Future<void> startNodeWithScript(
  1. String script, {
  2. bool redirectOutputToLogcat = true,
})
override

Starts the embedded Node.js engine with an inline JavaScript script.

  • redirectOutputToLogcat: If true, routes stdout/stderr to Logcat.

Platform-specific implementations must override this.

Implementation

@override
Future<void> startNodeWithScript(
  String script, {
  bool redirectOutputToLogcat = true,
}) async {
  await _methodChannel.invokeMethod('startNodeWithScript', {
    'script': script,
    'options': {'redirectOutputToLogcat': redirectOutputToLogcat},
  });
}