double clampDouble( {required double value, required double min, required double max}) => value < min ? min : value > max ? max : value;