getSupportedEngines static method

List<VpnEngine> getSupportedEngines()

Get all supported engines for current platform

Implementation

static List<VpnEngine> getSupportedEngines() {
  final engines = <VpnEngine>[];

  for (final type in EngineType.values) {
    final engine = create(type);
    if (engine != null && engine.isSupported) {
      engines.add(engine);
    }
  }

  return engines;
}