RangeError.value constructor

RangeError.value(
  1. num value,
  2. [String name,
  3. String message]
)

Create a new RangeError with a message for the given value.

An optional name can specify the argument name that has the invalid value, and the message can override the default error description.

Implementation

RangeError.value(num value, [String name, String message])
    : start = null,
      end = null,
      super.value(
          value, name, (message != null) ? message : "Value not in range");