onTapAnchor method Null safety

Future<bool> onTapAnchor(
  1. String id,
  2. EnsureVisible scrollTo
)

Ensures anchor is visible.

Returns true if anchor has been found and ScrollPosition.ensureVisible completes successfully.

Implementation

Future<bool> onTapAnchor(String id, EnsureVisible scrollTo) => scrollTo(id);