RobotsTxt.allowAll constructor

RobotsTxt.allowAll({
  1. required String baseUrl,
  2. String sitemapPath = '/sitemap.xml',
})

Create a simple robots.txt that allows everything

Implementation

factory RobotsTxt.allowAll({
  required String baseUrl,
  String sitemapPath = '/sitemap.xml',
}) {
  return RobotsTxt(
    baseUrl: baseUrl,
    rules: const [
      RobotsRule(userAgent: '*', allow: ['/']),
    ],
    sitemaps: [sitemapPath],
  );
}