updatePosition method Null safety
- BMFCoordinate position
更新Text经纬度
BMFCoordinate
position 圆心点经纬度
Implementation
Future<bool> updatePosition(BMFCoordinate position) async {
ArgumentError.checkNotNull(position, "position");
bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
.updateTextMember(this.methodChannel,
{'id': this.id, 'member': 'position', 'value': position.toMap()});
if (ret) {
this.position = position;
}
return ret;
}