devInspect method
Implementation
void devInspect(ECSBase<T> origin) {
// TODO: support other structures, currently only Entity/Component
if (origin is Entity<T>) debugWidget.setState(() {
debugWidget.entityWidget.targetEntity = origin;
debugWidget.hidden = false;
});
if (origin is Comp<T>) debugWidget.setState(() {
debugWidget.compWidget.targetComp = origin;
debugWidget.hidden = false;
});
throw UnsupportedError('Invalid origin $origin for `devInspect`!');
}