validateCount static method

void validateCount(
  1. int? count
)

Implementation

static void validateCount(int? count) {
  if (count != null && count < 0) {
    throw ArgumentError.value(
      count,
      'count',
      'Must be greater than or equal to 0.',
    );
  }
}