getRenderedUIComponentById<T extends UIComponent> method

T? getRenderedUIComponentById<T extends UIComponent>(
  1. dynamic id, [
  2. bool? deep
])

Implementation

T? getRenderedUIComponentById<T extends UIComponent>(dynamic id,
    [bool? deep]) {
  if (id == null) return null;
  var components = getRenderedUIComponents(deep);
  return components.whereType<T>().firstWhereOrNull((e) => e.id == id);
}