setEntityHandler method
Installs the callback that answers entity queries.
Implementation
@override
void setEntityHandler(EntityQueryHandler handler, {bool background = false}) {
if (background) {
_backgroundEntities = handler;
} else {
_entities = handler;
}
}