CupertinoThemeData.raw constructor Null safety

  1. @protected
const CupertinoThemeData.raw(
  1. Brightness? brightness,
  2. Color? primaryColor,
  3. Color? primaryContrastingColor,
  4. CupertinoTextThemeData? textTheme,
  5. Color? barBackgroundColor,
  6. Color? scaffoldBackgroundColor
)

Same as the default constructor but with positional arguments to avoid forgetting any and to specify all arguments.

Used by subclasses to get the superclass's defaulting behaviors.

Implementation

@protected
const CupertinoThemeData.raw(
  Brightness? brightness,
  Color? primaryColor,
  Color? primaryContrastingColor,
  CupertinoTextThemeData? textTheme,
  Color? barBackgroundColor,
  Color? scaffoldBackgroundColor,
) : this._rawWithDefaults(
  brightness,
  primaryColor,
  primaryContrastingColor,
  textTheme,
  barBackgroundColor,
  scaffoldBackgroundColor,
  _kDefaultTheme,
);