Redirect constructor
Redirect({
- String? extensionPath,
- URLTransform? transform,
- String? url,
- String? regexSubstitution,
Implementation
Redirect({
/// Path relative to the extension directory. Should start with '/'.
String? extensionPath,
/// Url transformations to perform.
URLTransform? transform,
/// The redirect url. Redirects to JavaScript urls are not allowed.
String? url,
/// Substitution pattern for rules which specify a `regexFilter`.
/// The first match of `regexFilter` within the url will be
/// replaced with this pattern. Within `regexSubstitution`,
/// backslash-escaped digits (\1 to \9) can be used to insert the
/// corresponding capture groups. \0 refers to the entire matching text.
String? regexSubstitution,
}) : _wrapped = $js.Redirect(
extensionPath: extensionPath,
transform: transform?.toJS,
url: url,
regexSubstitution: regexSubstitution,
);