getComponentsByType<T extends Component> method

List<T> getComponentsByType<T extends Component>(
  1. ComponentType type
)

Returns all components of ComponentType type.

Implementation

List<T> getComponentsByType<T extends Component>(ComponentType type) =>
    _getComponentsByType(type).whereType<T>().toList();