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

Commit 4c659b1

Browse files
author
a-wallen
committed
Expose getViewById, hide map interface
1 parent 6a8fd2e commit 4c659b1

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/web_ui/lib/src/engine/platform_dispatcher.dart

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,9 +138,10 @@ class EnginePlatformDispatcher extends ui.PlatformDispatcher {
138138

139139
/// The current list of windows,
140140
@override
141-
Iterable<ui.FlutterView> get views => _windows.values;
142-
Map<Object, ui.FlutterView> get windows => _windows;
143-
final Map<Object, ui.FlutterView> _windows = <Object, ui.FlutterView>{};
141+
Iterable<ui.FlutterView> get views => _views.values;
142+
final Map<Object, ui.FlutterView> _views = <Object, ui.FlutterView>{};
143+
ui.FlutterView? getViewById(Object id) => _views[id];
144+
144145
/// A map of opaque platform window identifiers to window configurations.
145146
///
146147
/// This should be considered a protected member, only to be used by

0 commit comments

Comments
 (0)