我写了个插件,调用百度定位获取地理位置,但是在 flutter 里 invokeMethod 调用原生的功能获取地理位置之后,原生的是个回调方法,我在回调方法里通过 Event Channel 把坐标传给 flutter 端,flutter 端通过这个 Event Channel 接收。
我现在想把在 flutter 获取地理位置的操作变成同步的,我获取到位置之后,要判断距离,该怎么做?