setCacheValidator<O> method

void setCacheValidator<O>(
  1. String key,
  2. bool cacheValidator(
    1. Object o
    )
)

Sets the cacheValidator for key

Implementation

void setCacheValidator<O>(
        String key, bool Function(Object o) cacheValidator) =>
    _cacheValidators[key] = cacheValidator;