updateRotate method Null safety

Future<bool> updateRotate(
  1. double rotate
)

更新Text 旋转角度

rotate 旋转角度

Implementation

Future<bool> updateRotate(double rotate) async {
  if (rotate < -1) {
    return false;
  }
  bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
      .updateTextMember(this.methodChannel,
          {'id': this.id, 'member': 'rotate', 'value': rotate});
  if (ret) {
    this.rotate = rotate;
  }
  return ret;
}