attachChannels static method

void attachChannels(
  1. BinaryMessenger messenger
)

Implementation

static void attachChannels(BinaryMessenger messenger) {
  for (final module in _modules.values) {
    final id = module.moduleId;
    module.attachChannels(ScopedChannels(
      methods: MethodChannel('yandex_pay/$id/methods', const StandardMethodCodec(), messenger),
      events: EventChannel('yandex_pay/$id/events', const StandardMethodCodec(), messenger),
    ));
  }
}