updateIcon method

Future<bool> updateIcon (
  1. String icon
)

更新显示的图片

Implementation

Future<bool> updateIcon(String icon) async {
  if (null == icon || icon.isEmpty) {
    return false;
  }

  bool ret = await BMFMapDispatcherFactory.instance.markerDispatcher
      .updateMarkerMember(this.methodChannel, {
    'id': this.Id,
    'member': 'icon',
    'value': icon,
  });

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

  return ret;
}