throwIfNullOrEmpty static method

void throwIfNullOrEmpty(
  1. String? argument,
  2. String? paramName
)

Throws an exception if argument is null or empty.

Implementation

static void throwIfNullOrEmpty(String? argument, String? paramName) {
  if (isNullOrEmpty(argument)) {
    _throwNullOrEmptyException(argument, paramName);
  }
}