registerWith static method

void registerWith(
  1. Registrar registrar
)

Implementation

static void registerWith(Registrar registrar) {
  final MethodChannel channel = MethodChannel(
    'flutter_segment',
    const StandardMethodCodec(),
    registrar, // the registrar is used as the BinaryMessenger
  );
  final SegmentWeb instance = SegmentWeb();
  channel.setMethodCallHandler(instance.handleMethodCall);
}