operator []= method

void operator []=(
  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

operator []=(int themeId, ThemeData theme) => _themes[themeId] = theme;