unbindWithIdentifier method

void unbindWithIdentifier({
  1. required String identify,
  2. required XGBindType bindType,
})

解绑账号或标签

Implementation

void unbindWithIdentifier({
  required String identify,
  required XGBindType bindType,
}) {
  if (Platform.isIOS) {
    _channel.invokeMethod('unbindWithIdentifier',
        {'identify': identify, 'bindType': bindType.index});
  } else {
    if (bindType.index == XGBindType.tag.index) {
      xgApi.deleteXgTag(tagName: identify);
    } else if (bindType.index == XGBindType.account.index) {
      xgApi.delAccount(account: identify);
    }
  }
}