updateCenter method Null safety

Future<bool> updateCenter(
  1. BMFCoordinate center
)

更新圆心点经纬度

BMFCoordinate center 圆心点经纬度

Implementation

Future<bool> updateCenter(BMFCoordinate center) async {
  ArgumentError.checkNotNull(center, "center");

  bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
      .updateCircleMember(this.methodChannel,
          {'id': this.id, 'member': 'center', 'value': center.toMap()});

  if (ret) {
    this.center = center;
  }

  return ret;
}