satisfiesFragment method

bool satisfiesFragment(
  1. String? fragment
)

Returns true if the fragment (such as #something) will find it's mark on this Destination. If the fragment is null or empty, it will automatically succeed.

Implementation

bool satisfiesFragment(String? fragment) {
  if (fragment == null || fragment == '') return true;
  return anchors.contains(normalizeAnchor(fragment));
}