checkType static method

bool checkType(
  1. String key,
  2. Type type
)

Implementation

static bool checkType(String key, Type type) {
  Type itemType = getType(key);
  return itemType == type || itemType == Null;
}