openInEditor method

  1. @override
Future<void> openInEditor()
override

Opens configFilePath in the OS default application.

Implementation

@override
Future<void> openInEditor() async {
  await ensureConfigFile(_settingsPath);
  final path = _settingsPath;
  if (Platform.isMacOS) {
    await _exec.run('open', arguments: [path]);
  } else if (Platform.isWindows) {
    await _exec.run('cmd', arguments: ['/c', 'start', '', path]);
  } else {
    await _exec.run('xdg-open', arguments: [path]);
  }
}