wouldKeep method

bool wouldKeep(
  1. double luma
)

Whether a reading of luma would change nothing: it is the luma in effect, and no other reading is still waiting to take effect.

Implementation

bool wouldKeep(double luma) => _sampled && _pending.isEmpty && luma == _luma;