CliComputerExecutor constructor

CliComputerExecutor({
  1. required bool getMouseAnimationEnabled(),
  2. required bool getHideBeforeActionEnabled(),
})

Implementation

CliComputerExecutor({
  required bool Function() getMouseAnimationEnabled,
  required bool Function() getHideBeforeActionEnabled,
}) : _getMouseAnimationEnabled = getMouseAnimationEnabled,
     _getHideBeforeActionEnabled = getHideBeforeActionEnabled,
     _terminalBundleId = _detectTerminalBundleId(),
     _surrogateHost = _detectTerminalBundleId() ?? cliHostBundleId {
  if (!Platform.isMacOS) {
    throw UnsupportedError(
      'CliComputerExecutor is macOS-only. Current platform: ${Platform.operatingSystem}',
    );
  }
}