updateOptionAndCenter method Null safety
- {required BMF3DModelOption option,
- required BMFCoordinate center}
更新3d模型的option 和 中心点
BMF3DModelOption option 3d模型option
BMFCoordinate
center 中心点
Implementation
Future<bool> updateOptionAndCenter(
{required BMF3DModelOption option, required BMFCoordinate center}) async {
ArgumentError.checkNotNull(option, "option");
ArgumentError.checkNotNull(center, "center");
bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
.update3DModelOverlayMember(this.methodChannel, {
'id': this.id,
'member': 'optionAndcenter',
'value': {'option': option.toMap(), 'center': center.toMap()}
});
if (ret) {
this.option = option;
this.center = center;
}
return ret;
}