NoDefaultCupertinoThemeData class Null safety

Styling specifications for a cupertino theme without default values for unspecified properties.

Unlike CupertinoThemeData instances of this class do not return default values for properties that have been left unspecified in the constructor. Instead, unspecified properties will return null. This is used by Material's ThemeData.cupertinoOverrideTheme.

See also:

  • CupertinoThemeData, which uses reasonable default values for unspecified theme properties.
Implementers

Constructors

NoDefaultCupertinoThemeData({Brightness? brightness, Color? primaryColor, Color? primaryContrastingColor, CupertinoTextThemeData? textTheme, Color? barBackgroundColor, Color? scaffoldBackgroundColor})
Creates a NoDefaultCupertinoThemeData styling specification. [...]
const

Properties

barBackgroundColor Color?
Background color of the top nav bar and bottom tab bar. [...]
final
brightness Brightness?
The brightness override for Cupertino descendants. [...]
final
hashCode int
The hash code for this object. [...]
read-only, inherited
primaryColor Color?
A color used on interactive elements of the theme. [...]
final
primaryContrastingColor Color?
A color that must be easy to see when rendered on a primaryColor background. [...]
final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
scaffoldBackgroundColor Color?
Background color of the scaffold. [...]
final
textTheme CupertinoTextThemeData?
Text styles used by Cupertino widgets. [...]
final

Methods

copyWith({Brightness? brightness, Color? primaryColor, Color? primaryContrastingColor, CupertinoTextThemeData? textTheme, Color? barBackgroundColor, Color? scaffoldBackgroundColor}) NoDefaultCupertinoThemeData
Creates a copy of the theme data with specified attributes overridden. [...]
noDefault() NoDefaultCupertinoThemeData
Returns an instance of the theme data whose property getters only return the construction time specifications with no derived values. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
resolveFrom(BuildContext context) NoDefaultCupertinoThemeData
Returns a new theme data with all its colors resolved against the given BuildContext. [...]
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited