Redirect class

A [Redirect](https://firebase.google.com/docs/hosting/full-config#redirects) specifies a URL pattern that, if matched to the request URL path, triggers Hosting to respond with a redirect to the specified destination path.

Constructors

Redirect({String? glob, String? location, String? regex, int? statusCode})
Redirect.fromJson(Map _json)

Properties

glob String?
The user-supplied glob to match against the request URL path.
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
location String?
The value to put in the HTTP location header of the response.
getter/setter pair
regex String?
The user-supplied RE2 regular expression to match against the request URL path.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
statusCode int?
The status HTTP code to return in the response.
getter/setter pair

Methods

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

Operators

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