updateHollowShapes method Null safety
- List<
BMFHollowShape> hollowShapes
更新镂空区
List<BMFHollowShape> hollowShapes 镂空列表
Implementation
Future<bool> updateHollowShapes(List<BMFHollowShape> hollowShapes) async {
ArgumentError.checkNotNull(hollowShapes, "hollowShapes");
bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
.updateCircleMember(this.methodChannel, {
'id': this.id,
'member': 'hollowShapes',
'value': hollowShapes.map((e) => e.toMap()).toList()
});
if (ret) {
this.hollowShapes = hollowShapes;
}
return ret;
}