isBotAgent function

bool isBotAgent(
  1. String userAgent
)

Analyze the user agent value to determine if it's a bot for a search engine. Returns true if it's a bot.

Implementation

bool isBotAgent(String userAgent) {
  return _botPattern.hasMatch(userAgent);
}