iOSTheme property
The Apps's current Cupertino theme.
Implementation
CupertinoThemeData? get iOSTheme => _iOSTheme;
set
iOSTheme
(dynamic value)
inherited
Implementation
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,
);
}
}