updateText method Null safety

Future<bool> updateText(
  1. String text
)

更新Text文本

text 文本

Implementation

Future<bool> updateText(String text) async {
  ArgumentError.checkNotNull(text, "text");

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

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

  return ret;
}