Int constructor

Int({
  1. String? mal,
})

Constrains data to integer numbers.

mal "malformed", the error message for non-integer input values; the default value is 'non-integer input value'.

Implementation

Int({String? mal}) : _val = _AsInt(mal, const Ok());