registerWith static method Null safety

void registerWith(
  1. Registrar registrar
)

Implementation

static void registerWith(Registrar registrar) {
  final MethodChannel channel = MethodChannel(
      'audio_manager',
      const StandardMethodCodec(),
      // ignore: deprecated_member_use
      registrar.messenger);

  final AudioManagerPlugin instance = AudioManagerPlugin();
  channel.setMethodCallHandler(instance.handleMethodCall);
}