has<T extends Component> method

bool has<T extends Component>()

If entity has a component of type T

Implementation

bool has<T extends Component>() {
  return components.value.containsKey(T);
}