Theme.existing constructor

Theme.existing(
  1. ExistingTheme existingTheme, {
  2. Color? tintColor,
  3. Color? primaryColor,
  4. Color? backgroundColor,
  5. Color? menuBackgroundColor,
  6. 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";