Creates the progress instance.
ProgressValue({ this.error = false, required this.max, required int value, }) : assert(max > 0), assert(value >= 0), value = min(value, max);