startNodeProject method

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

Starts the Node.js engine by executing the given entry file mainFileName.

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

Platform-specific implementations must override this.

Implementation

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