Add Overlay.maybeOf, make Overlay.of return a non-nullable instance (#110811)

This commit is contained in:
Greg Spencer
2022-09-01 17:13:12 -07:00
committed by GitHub
parent a7ba717b2f
commit 2051f09c68
13 changed files with 134 additions and 54 deletions

View File

@@ -132,7 +132,7 @@ class _OverlayExampleState extends State<OverlayExample> {
);
// Add the OverlayEntry to the Overlay.
Overlay.of(context, debugRequiredFor: widget)!.insert(overlayEntry!);
Overlay.of(context, debugRequiredFor: widget).insert(overlayEntry!);
}
// Remove the OverlayEntry.