registerWith static method

void registerWith()

Implementation

static void registerWith() {
  if (__instance == null) {
    if (kIsWeb) {
      throw UnsupportedError('The web platform is not supported');
    } else if (Platform.isLinux) {
      __instance = WireGuardFlutterLinux();
    } else {
      __instance = WireGuardFlutterMethodChannel();
    }
  }
}