Int.neg constructor
Constrains data to negative integer numbers (zero excluded).
mal
"malformed", the error message for non-integer input values; the
default value is 'non-integer input value'.
pos
the error message if an input value is positive; the default value
is 'it cannot be positive'.
Implementation
Int.neg({String? mal, String? pos})
: this.max(-1, mal: mal, large: pos ?? 'it cannot be positive');