ResourceTransformRule class final
Query parameters to add to the URLs of requests that match a pattern.
The library adds the parameters, in order, at the end of the URL's query and before any fragment. It keeps the parameters that the URL already has, even one with the same name.
See mln_resource_transform_rule in the
C API reference.
Constructors
-
ResourceTransformRule({ResourceKindFlag kinds = ResourceKindFlag.none, UrlMatchFlag flags = UrlMatchFlag.none, String url = '', List<
UrlQueryParameter> parameters = const []})
Properties
- flags → UrlMatchFlag
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- kinds → ResourceKindFlag
-
The kinds of resource that the rule covers. Zero covers every kind.
final
-
parameters
→ List<
UrlQueryParameter> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- url → String
-
final
Methods
-
copyWith(
{ResourceKindFlag? kinds, UrlMatchFlag? flags, String? url, List< UrlQueryParameter> ? parameters}) → ResourceTransformRule - A copy of this value with the given members replaced.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited