KeyParams class
Replaces placeholders in the given path
using the provided params
map.
Example:
FieldParams params = Params({'param1': 'value1', 'param2': 'value2'}); // Params: param1 = value1, param2 = value2
String root = "/path/{param1}/endpoint/{param2}"; // Input : /path/{param1}/endpoint/{param2}
String path = params.generate(root); // Output: /path/value1/endpoint/value2
- Inheritance
-
- Object
- DataFieldParams
- KeyParams
- Available extensions
Properties
Methods
-
generate(
String root) → String -
Available on DataFieldParams?, provided by the DataFieldParamsHelper extension
-
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.
override