expandTemplate method

Link expandTemplate(
  1. Map<String, String> parameters
)

Expands the HREF by replacing URI template variables by the given parameters.

See RFC 6570 on URI template.

Implementation

Link expandTemplate(Map<String, String> parameters) =>
    copy(href: UriTemplate(href).expand(parameters), templated: false);