selectAnchorLinksTargets method

List<String> selectAnchorLinksTargets()

Selects the AnchorElement links targets/fragments.

Implementation

List<String> selectAnchorLinksTargets() => selectAnchorLinks()
    .where((e) => e.contains('#'))
    .map((e) => e.split('#').last)
    .toList();