normalizeThreshold static method

int normalizeThreshold(
  1. int threshold
)

Minimum-safe sampling threshold shared by config parsing and rendering.

Implementation

static int normalizeThreshold(int threshold) =>
    threshold < minimumThreshold ? minimumThreshold : threshold;