MaterialBasedCupertinoThemeData constructor Null safety

MaterialBasedCupertinoThemeData(
  1. {required ThemeData materialTheme}
)

Create a MaterialBasedCupertinoThemeData based on a Material ThemeData and its cupertinoOverrideTheme.

The materialTheme parameter must not be null.

Implementation

MaterialBasedCupertinoThemeData({
  required ThemeData materialTheme,
}) : this._(
  materialTheme,
  (materialTheme.cupertinoOverrideTheme ?? const CupertinoThemeData()).noDefault(),
);