RobotsTxt.allowAll constructor
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],
);
}