isValidEntityType static method

bool isValidEntityType(
  1. Type type
)

Implementation

static bool isValidEntityType(Type type) {
  return type != dynamic &&
      type != Object &&
      type != DateTime &&
      type != Duration &&
      !isCollectionType(type) &&
      !isPrimitiveType(type);
}