registerWith static method

void registerWith(
  1. Registrar registrar
)

Implementation

static void registerWith(Registrar registrar) {
  WidgetsFlutterBinding.ensureInitialized();
  final instance = FlutterMidiPlugin();
  final MethodChannel channel = MethodChannel(
    'flutter_midi',
    const StandardMethodCodec(),
    registrar.messenger,
  );
  channel.setMethodCallHandler(instance.handleMethodCall);
}