mediaThemeOf static method
The theme a media ground wears under the nearest host (design_kit's
ChromeGround.media): the host's dark theme, whatever brightness the
app is in; the default preset's dark theme outside any host.
Implementation
static ExpressiveThemeData mediaThemeOf(BuildContext context) =>
context.dependOnInheritedWidgetOfExactType<_ExpressiveHostDark>()?.dark ??
ExpressiveThemeData.preset(
ExpressiveThemeData.defaultPreset,
Brightness.dark,
);