parameters property

Iterable<String> get parameters

List of URI template parameter keys, if the Link is templated.

Implementation

// Escaping the last } is somehow required, otherwise the regex can't be parsed on a Pixel
// 3a. However, without it works with the unit tests.
Iterable<String> get parameters => RegExp("\\{\\??([^}]+)\\}")
    .allMatches(uri)
    .toList()
    .expand((it) => it.group(1)!.split(","))
    .toSet();