wrapOverlay method
Lets subclasses wrap overlay content with inherited dependencies captured from the anchor subtree (for example, a custom theme).
Implementation
@override
Widget wrapOverlay(BuildContext anchorContext, Widget overlayChild) {
final theme = MinTheme.maybeOf(anchorContext);
if (theme == null) {
return overlayChild;
}
return MinTheme(data: theme, child: overlayChild);
}