integer static method

String? integer(
  1. String? value, {
  2. String? message,
})

Check if the value is an integer.

Implementation

static String? integer(String? value, {String? message}) =>
    value == null || value.isEmpty || validations.isInt(value) ? null : message ?? 'Please enter a valid integer';