Calculates the minimum value between fromValue and toValue.
double get minValue => min(fromValue, toValue);