getTargetTeam method

Future<NIMTeam?> getTargetTeam()

Implementation

Future<NIMTeam?> getTargetTeam() async {
  if (isTeamType() && targetId != null) {
    return NimCore.instance.teamService
        .queryTeam(targetId!)
        .then((value) => value.data);
  }
  return null;
}