validateId method

  1. @visibleForTesting
void validateId(
  1. int id
)

Implementation

@visibleForTesting
void validateId(int id) {
  if (id > 0x7FFFFFFF || id < -0x80000000) {
    throw ArgumentError(
        'The id field must be the limited to 32-bit size integer');
  }
}