noDefault method Null safety

  1. @override
NoDefaultCupertinoThemeData noDefault()

Returns an instance of the theme data whose property getters only return the construction time specifications with no derived values.

Used in Material themes to let unspecified properties fallback to Material theme properties instead of iOS defaults.


NoDefaultCupertinoThemeData noDefault() {
  return NoDefaultCupertinoThemeData(
    brightness: super.brightness,
    primaryColor: super.primaryColor,
    primaryContrastingColor: super.primaryContrastingColor,
    textTheme: super.textTheme,
    barBackgroundColor: super.barBackgroundColor,
    scaffoldBackgroundColor: super.scaffoldBackgroundColor,