intNullGTZero static method

String? intNullGTZero(
  1. int? value, {
  2. String msg = 'O valor deve ser nulo ou maior que zero.',
})

Implementation

static String? intNullGTZero(
  int? value, {
  String msg = 'O valor deve ser nulo ou maior que zero.',
}) =>
    (value == null || value > 0) ? null : msg;