component<T> method

T? component<T>(
  1. String name
)

Find a component of a specific type with a specific name.

Implementation

T? component<T>(String name) {
  return getComponentWhereOrNull((component) => component.name == name);
}