addTheme method
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;
}