setMax method

void setMax()

Set to maximum value.

Implementation

void setMax() {
  if (max != null) emit(max!);
}