NegativeValueException.withValue constructor

const NegativeValueException.withValue(
  1. num? value, [
  2. String? message
])

Creates a NegativeValueException object that includes the value that triggered this exception.

Implementation

const NegativeValueException.withValue(this.value, [this.message]);