Theme.existing constructor
Theme.existing(
- ExistingTheme existingTheme, {
- Color? tintColor,
- Color? primaryColor,
- Color? backgroundColor,
- Color? toolbarBackgroundColor,
Creates a custom Theme from a given existingTheme
.
For iOS, the existingTheme
can be overridden by speciyfing custom
values for the colors.
Implementation
Theme.existing(ExistingTheme existingTheme,
{this.tintColor,
this.primaryColor,
this.backgroundColor,
this.menuBackgroundColor,
this.toolbarBackgroundColor})
: identifier = _existingThemes[existingTheme] ?? "dark";