indexOfFirstWithHref method

int? indexOfFirstWithHref(
  1. String href
)

Returns the first Link with the given href, or null if not found.

Implementation

int? indexOfFirstWithHref(String href) =>
    indexWhere((it) => it.href == href).takeUnless((it) => it == -1);