getComponent<T extends Object> method
Retrieves the component of type T
associated with this entity.
Implementation
Option<T> getComponent<T extends Object>() {
UNSAFE:
return Option.from(
_getDependencies()
.map((e) => e.value.unwrap())
.whereType<T>()
.firstOrNull,
);
}