path property

String get path

The path the application serves this page at. Derived from id so the two sides cannot disagree about it: the document never carries a URL.

Implementation

String get path => id == 'index'
    ? '/'
    : id.startsWith('decision:')
    ? '/decisions/${id.substring('decision:'.length)}'
    : '/$id';