registerWith static method
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);
}