start method

  1. @override
Future<RufletRuntimeStatus> start({
  1. required String projectRoot,
  2. required String entrypoint,
  3. List<String> loadPaths = const [],
  4. Map<String, String> environment = const {},
  5. String? errorFilePath,
  6. String? stopSignalPath,
})
override

Implementation

@override
Future<RufletRuntimeStatus> start({
  required String projectRoot,
  required String entrypoint,
  List<String> loadPaths = const [],
  Map<String, String> environment = const {},
  String? errorFilePath,
  String? stopSignalPath,
}) async {
  final value = await methodChannel
      .invokeMapMethod<Object?, Object?>('start', {
        'projectRoot': projectRoot,
        'entrypoint': entrypoint,
        'loadPaths': loadPaths,
        'environment': environment,
        if (errorFilePath != null && errorFilePath.isNotEmpty)
          'errorFilePath': errorFilePath,
        if (stopSignalPath != null && stopSignalPath.isNotEmpty)
          'stopSignalPath': stopSignalPath,
      });
  return _statusFromNative(value, 'start');
}