Dart Documentationchrome.declarativeWebRequestRedirectByRegEx

RedirectByRegEx class

Redirects a request by applying a regular expression on the URL. The regular expressions use the RE2 syntax.

class RedirectByRegEx extends ChromeObject {
 RedirectByRegEx({String from, String to}) {
   if (from != null) this.from = from;
   if (to != null) this.to = to;
 }
 RedirectByRegEx.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

 /**
  * A match pattern that may contain capture groups. Capture groups are
  * referenced in the Perl syntax ($1, $2, ...) instead of the RE2 syntax (\1,
  * \2, ...) in order to be closer to JavaScript Regular Expressions.
  */
 String get from => jsProxy['from'];
 set from(String value) => jsProxy['from'] = value;

 /**
  * Destination pattern.
  */
 String get to => jsProxy['to'];
 set to(String value) => jsProxy['to'] = value;
}

Extends

ChromeObject > RedirectByRegEx

Constructors

new RedirectByRegEx({String from, String to}) #

Create a new instance of a ChromeObject, which creates and delegates to a JsObject proxy.

docs inherited from ChromeObject
RedirectByRegEx({String from, String to}) {
 if (from != null) this.from = from;
 if (to != null) this.to = to;
}

new RedirectByRegEx.fromProxy(JsObject jsProxy) #

Create a new instance of a ChromeObject, which delegates to the given JsObject proxy.

docs inherited from ChromeObject
RedirectByRegEx.fromProxy(JsObject jsProxy): super.fromProxy(jsProxy);

Properties

String from #

A match pattern that may contain capture groups. Capture groups are referenced in the Perl syntax ($1, $2, ...) instead of the RE2 syntax (\1, \2, ...) in order to be closer to JavaScript Regular Expressions.

String get from => jsProxy['from'];
set from(String value) => jsProxy['from'] = value;

final jsProxy #

inherited from ChromeObject
final dynamic jsProxy

String to #

Destination pattern.

String get to => jsProxy['to'];
set to(String value) => jsProxy['to'] = value;

Methods

JsObject toJs() #

inherited from ChromeObject
JsObject toJs() => jsProxy;

String toString() #

inherited from ChromeObject

Returns a string representation of this object.

docs inherited from Object
String toString() => jsProxy.toString();