const ValueThreshold( num? min, num? max, ) : assert(min != null || max != null), _min = min ?? 0, _max = max ?? double.infinity;