updateWidth method

Future<bool> updateWidth (
  1. int width
)

更新索引线宽

Implementation

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

  this.width = width;

  return await BMFMapDispatcherFactory.instance
      .getOverlayDispatcher()
      .updateOverlayMemberDispatch(this.getMethodChannel(), {
    'id': this.getId(),
    'member': 'width',
    'value': width,
  });
}