hasComponent method

bool hasComponent(
  1. Type type
)

Checks if entity has a component of the type of the given object.

Implementation

bool hasComponent(Type type) {
  return components.value.containsKey(type);
}