executable property

  1. @override
String get executable

The file path of the executable used to run the script in this isolate.

Warning

This property is deprecated on Platform. It is only implemented by the legacy LocalPlatform and FakePlatform classes, and cannot be accessed through Platform.current. Use NativePlatform to access these properties instead, accessed as NativePlatform.current.

The file path returned is the literal path used to run the script. This path might be relative or just be a name from which the executable was found by searching the system path.

For the absolute path to the resolved executable use resolvedExecutable.

Implementation

@override
String get executable => _nativePlatform.executable;