noDefault method

  1. @override
NoDefaultCupertinoThemeData noDefault()
override

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.

Implementation

@override
NoDefaultCupertinoThemeData noDefault() {
  return NoDefaultCupertinoThemeData(
    brightness: super.brightness,
    primaryColor: super.primaryColor,
    primaryContrastingColor: super.primaryContrastingColor,
    textTheme: super.textTheme,
    barBackgroundColor: super.barBackgroundColor,
    scaffoldBackgroundColor: super.scaffoldBackgroundColor,
    applyThemeToAll: super.applyThemeToAll,
  );
}