ResourceTransform class final
How to rewrite request URLs, for RuntimeHandle.setResourceTransform().
Set either callback or rules, not both.
See mln_resource_transform in the
C API reference.
Constructors
-
ResourceTransform({ResourceTransformCallback? callback, List<
ResourceTransformRule> rules = const []})
Properties
- callback → ResourceTransformCallback?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
rules
→ List<
ResourceTransformRule> -
The first rule that matches a request adds its parameters, and no other. A
request that no rule matches keeps its URL.
final
- 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