updateTextures method Null safety

Future<bool> updateTextures(
  1. List<String> textures
)

更新纹理textures (iOS 暂不支持)

Implementation

Future<bool> updateTextures(List<String> textures) async {
  ArgumentError.checkNotNull(textures, "textures");

  bool ret = await BMFMapDispatcherFactory.instance.overlayDispatcher
      .updatePolylineMember(this.methodChannel, {
    'id': this.id,
    'member': 'textures',
    'value': textures.map((e) => e).toList()
  });

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

  return ret;
}