updateWidth method

Future<bool> updateWidth (
  1. int width
)

更新线宽

Implementation

Future<bool> updateWidth(int width) async {
  if (width < 0) {
    return false;
  }

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

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

  return ret;
}