updateImage method Null safety

Future<bool> updateImage(
  1. String image
)

更新图片, Android独有

image 绘制图片

Implementation

Future<bool> updateImage(String image) async {
  ArgumentError.checkNotNull(image, "image");

  if (image.isEmpty) {
    return false;
  }

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

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

  return ret;
}