updateVisible method

Future<bool> updateVisible(
  1. bool visible
)

更新Dot是否显示 Android独有 bool visible 显示状态

Implementation

Future<bool> updateVisible(bool visible) async {
  ArgumentError.checkNotNull(visible, "visible");

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

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

  return ret;
}