upsertRobot method

void upsertRobot(
  1. V2NIMUserAIBot bot
)

Add or update a single AI robot in memory cache.

Implementation

void upsertRobot(V2NIMUserAIBot bot) {
  final accid = bot.accid;
  if (accid == null || accid.isEmpty) {
    return;
  }
  robotCache[accid] = bot;
  _robotChangeController.add(getAllRobotList());
}