updateIndexs method
- List<
int> indexs
更新索引
Android在以colors渲染的情况下,单独更新索引是无效的,应该使用updateColors接口
Implementation
Future<bool> updateIndexs(List<int> indexs) async {
if (null == indexs) {
return false;
}
bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
.updatePolylineMember(this.methodChannel, {
'id': this.Id,
'member': 'indexs',
'value': indexs?.map((index) => index)?.toList()
});
if (ret) {
this.indexs = indexs;
}
return ret;
}