hitRate property
double
get
hitRate
Fraction of get calls that were hits: hits / (hits + misses).
Returns 0.0 if no get calls have been made yet.
Implementation
double get hitRate {
final total = hits + misses;
return total == 0 ? 0.0 : hits / total;
}