supportsLaunchObservatory method

Future<bool> supportsLaunchObservatory()

Returns true if this environment supports observatory launch.

Implementation

Future<bool> supportsLaunchObservatory() async {
  if (_supportsLaunchObservatory == null) {
    var result = await executablePath('open');
    _supportsLaunchObservatory = result != null;
  }
  return _supportsLaunchObservatory!;
}