tryGetValue<T> abstract method

bool tryGetValue<T>(
  1. Object key,
  2. void setValue(
    1. T? value
    )
)

Gets the value associated with key if it exists.

Returns the cached value, or null if the key is not found. Sets value to the cached value if found.

Returns true if the key was found.

Implementation

bool tryGetValue<T>(Object key, void Function(T? value) setValue);