getTags static method
Implementation
static Future getTags(Function(int? code, List tags)? finished) async {
Map result = await _channel.invokeMethod(RCMethodKey.GetTags, null);
int? code = result['code'];
List resultList = [];
if (code == 0) {
List tags = result['getTags'];
for (String conStr in tags) {
TagInfo? tagInfo = MessageFactory.instance!.string2TagInfo(conStr);
resultList.add(tagInfo);
}
}
if (finished != null) {
finished(code, resultList);
}
}