platformThemeData<T> function
T
platformThemeData<T>(
- BuildContext context, {
- required T material(
- ThemeData theme
- required T cupertino(
- CupertinoThemeData theme
Implementation
T platformThemeData<T>(
BuildContext context, {
required T Function(ThemeData theme) material,
required T Function(CupertinoThemeData theme) cupertino,
}) {
return isMaterial(context)
? material(Theme.of(context))
: cupertino(CupertinoTheme.of(context));
}