parsePositiveInt static method

int? parsePositiveInt(
  1. Object? raw
)

Implementation

static int? parsePositiveInt(Object? raw) {
  final value = parseInt(raw);
  return value != null && value > 0 ? value : null;
}