throwIfNull static method

void throwIfNull(
  1. Object? argument,
  2. String? paramName
)

Throws an ArgumentNullException if argument is null.

Implementation

static void throwIfNull(Object? argument, String? paramName) {
  if (argument == null) {
    _throw(paramName);
  }
}