checkItemFailed function Null safety

void checkItemFailed(
  1. dynamic val,
  2. String className
)

Implementation

void checkItemFailed(val, String className) {
  throw ArgumentError('Value ($val) is not an instance of $className');
}