throwIfNullOrWhitespace static method

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

Throws an exception if argument is null, empty, or consists only of white-space characters.

Implementation

static void throwIfNullOrWhitespace(String? argument, String? paramName) {
  if (isNullOrWhitespace(argument)) {
    _throwNullOrWhitespaceException(argument, paramName);
  }
}