DocVersionPolicy constructor

const DocVersionPolicy({
  1. required String baseDocsUrl,
  2. String latestVersion = 'latest',
  3. List<String> supportedVersions = const ['latest', 'v1', 'v2', 'next'],
  4. bool canonicalizeToLatest = true,
  5. bool noindexOlderVersions = true,
})

Implementation

const DocVersionPolicy({
  required this.baseDocsUrl,
  this.latestVersion = 'latest',
  this.supportedVersions = const ['latest', 'v1', 'v2', 'next'],
  this.canonicalizeToLatest = true,
  this.noindexOlderVersions = true,
});