iOSTheme property
CupertinoThemeData?
get
iOSTheme
The Apps's current Cupertino theme.
Implementation
static CupertinoThemeData? get iOSTheme => _iOSTheme;
set
iOSTheme
(dynamic value)
Implementation
static set iOSTheme(dynamic value) {
if (value == null) {
return;
}
if (value is CupertinoThemeData) {
_iOSTheme = value;
} else if (value is ThemeData) {
_iOSTheme = MaterialBasedCupertinoThemeData(materialTheme: value);
} else if (value is! Color) {
// Ignore the value
} else if (_iOSTheme == null) {
_iOSTheme = CupertinoThemeData(
primaryColor: value,
);
} else {
_iOSTheme = _iOSTheme?.copyWith(
primaryColor: value,
);
}
}