Calculates the maximum value between fromValue and toValue.
double get maxValue => max(fromValue, toValue);