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
Available extensions

Constructors

KeyParams(Map<String, String> values)
const

Properties

hashCode int
The hash code for this object.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
values Map<String, String>
final

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