adaptiveConversion method
Returns an equivalent configuration adapted for the current platform, e.g. a PopoverConfiguration becomes a DrawerConfiguration on mobile.
Returns this by default (no adaptation). Called by showOverlay when
adaptive: true (the default).
Implementation
@override
OverlayConfiguration<T> adaptiveConversion(BuildContext context) {
if (isMobile(Theme.of(context).platform)) {
return DrawerConfiguration<T>(builder: builder);
}
return this;
}