firstScrollable property

UiElement? get firstScrollable

Find the first scrollable element on screen, if any.

Implementation

UiElement? get firstScrollable {
  for (final e in elements) {
    if (e.type == UiElementType.scrollable) return e;
  }
  return null;
}