cupertinoThemeOf static method
get current CupertinoThemeData of current ThemeManger
Implementation
static CupertinoThemeData cupertinoThemeOf(BuildContext context) {
_ThemeManager inherited =
context.dependOnInheritedWidgetOfExactType<_ThemeManager>()!;
return inherited
.data!
.cupertinoThemesMap[inherited.data!.currentCupertinoThemeKey!]!
.themeData;
}