checkNotNull method

void checkNotNull (Object argument, [ String name ])

Throws if argument is null.

Implementation

static void checkNotNull(Object argument, [String name]) {
  if (argument == null) throw ArgumentError.notNull(name);
}