getTags static method

Future getTags(
  1. dynamic finished(
    1. int? code,
    2. List tags
    )?
)

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);
  }
}