Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit e7b6f07

Browse files
committed
document reason for first child
1 parent 7559919 commit e7b6f07

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/web_ui/lib/src/engine/platform_views/content_manager.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ class PlatformViewManager {
6565
/// Throws an [AssertionError] if [viewId] hasn't been rendered before.
6666
DomElement getViewById(int viewId) {
6767
assert(knowsViewId(viewId), 'No view has been rendered for viewId: $viewId');
68+
// `_contents[viewId]` is the <flt-platform-view> element created by us. The
69+
// first (and only) child of that is the element created by the user-supplied
70+
// factory function.
6871
return _contents[viewId]!.firstElementChild!;
6972
}
7073

0 commit comments

Comments
 (0)