We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b902fa5 commit 72d71d6Copy full SHA for 72d71d6
packages/flutter/lib/src/widgets/window.dart
@@ -286,8 +286,8 @@ class WindowControllerContext extends InheritedWidget {
286
final WindowController controller;
287
288
/// Returns the [WindowContext] if any
289
- static WindowControllerContext? of(BuildContext context) {
290
- return context.dependOnInheritedWidgetOfExactType<WindowControllerContext>();
+ static WindowController? of(BuildContext context) {
+ return context.dependOnInheritedWidgetOfExactType<WindowControllerContext>()?.controller;
291
}
292
293
@override
0 commit comments