getComponentsByType<T extends Component> method
Returns all components of ComponentType type
.
Implementation
List<T> getComponentsByType<T extends Component>(ComponentType type) =>
_getComponentsByType(type).whereType<T>().toList();