setForBot static method

void setForBot(
  1. String botName,
  2. String directive
)

Set robots directive for a specific bot

RobotsMeta.setForBot('googlebot', 'noindex');
RobotsMeta.setForBot('bingbot', 'nofollow');

Implementation

static void setForBot(String botName, String directive) {
  if (!Webify.isInitialized) return;
  Webify.instance.platform.setMetaTag(botName, directive);
}