operator [] method

ThemeData operator [](
  1. int themeId
)

Returns the ThemeData for the given themeId or the fallbackTheme specified in the constructor if themeId is not registered in the collection.

Implementation

ThemeData operator [](int themeId) {
  if (_themes.containsKey(themeId))
    return _themes[themeId]!;
  else
    return _fallbackTheme;
}