updateMaxLineWidth method Null safety

Future<bool> updateMaxLineWidth(
  1. int maxLineWidth
)

更新文字最大行宽

iOS独有

Implementation

Future<bool> updateMaxLineWidth(int maxLineWidth) async {
  if (!Platform.isIOS) {
    return false;
  }
  if (maxLineWidth < 0) {
    return false;
  }
  bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
      .updateTextMember(this.methodChannel,
          {'id': this.id, 'member': 'maxLineWidth', 'value': maxLineWidth});
  if (ret) {
    this.maxLineWidth = maxLineWidth;
  }
  return ret;
}