setCacheValidator<O> method

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

Sets the cacheValidator for key

Implementation

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