hasValue method

bool hasValue(
  1. T value
)

Checks if any map in the list contains the specified value.

value is the value to search for.

Example:

final hasJohnDoe = list.hasValue("John Doe");

Implementation

bool hasValue(T value) => any(
      (T element) => element is Map<T, T> && element.containsValue(value),
    );