registerWith static method

void registerWith([
  1. Object? registrar
])

Registers the stub plugin with Flutter's plugin system.

Accepts an optional registrar so the same stub satisfies both the Dart-only platform registration (called without arguments) and the web plugin registrant (called with a Registrar). The argument is ignored because the stub is a no-op on unsupported platforms.

Implementation

static void registerWith([Object? registrar]) {}