externalStartupRunInCurrentProcess method

  1. @override
Future<String> externalStartupRunInCurrentProcess({
  1. required String commandLine,
  2. PrivExternalStartupOptions? options,
})
override

Runs commandLine through /system/bin/sh in this app's own process.

Implementation

@override
Future<String> externalStartupRunInCurrentProcess({
  required String commandLine,
  PrivExternalStartupOptions? options,
}) async =>
    await methodChannel.invokeMethod<String>(
      'externalStartupRunInCurrentProcess',
      <String, Object?>{
        'commandLine': commandLine,
        'options': options?.toMap(),
      },
    ) ??
    '';