@override int getMatchingIndex(T1 element) { int matchingIndex = list.indexWhere((item) => match(item, element)); return matchingIndex; }