SeoRedirectScope enum

Who a resolver-issued SeoRedirect is honoured for.

The default all serves the 301 to human visitors as well as crawlers, because a redirect shown only to Googlebot is cloaking — bots and users must reach the same destination. It costs one extra head resolution per human page view on a dynamic table; a fully static table never takes the branch, since a static resolution can never be a redirect.

This scope only governs Flutter-delivered routes. A DOM-first route has no application fallback, so every resolver redirect and error document is delivered to every requester regardless of this setting.

Inheritance
Available extensions

Values

all → const SeoRedirectScope

Redirect both humans and bots (the anti-cloaking default).

botsOnly → const SeoRedirectScope

Redirect only crawlers; humans fall through to the app and its router handles navigation.

off → const SeoRedirectScope

Ignore resolver redirects entirely — pair this with seoRedirectMiddleware if you drive 301s from a map instead.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<SeoRedirectScope>
A constant List of the values in this enum, in order of their declaration.