addTheme method

void addTheme(
  1. int themeId,
  2. ThemeData theme
)

Associates the themeId with the given theme.

If the themeId was already in the collection, its associated theme is changed. Otherwise the themeId/theme pair is added to the collection.

Implementation

void addTheme(int themeId, ThemeData theme) {
  this[themeId] = theme;
}