setTags method

void setTags(
  1. List<String> tags
)

覆盖标签(清除所有标签再追加) tags类型为字符串数组(标签字符串不允许有空格或者是tab字符) tagStr

Implementation

void setTags(List<String> tags) {
  if (Platform.isIOS) {
    _channel.invokeMethod('setTags', tags);
  } else {
    xgApi.setXgTags(tagNames: tags);
  }
}