hasThemeForId method

bool hasThemeForId(
  1. int themeId
)

Returns true if this ThemeCollection has sepcific ThemeData stored for the given themeId. If this returns false, retrieving the ThemeData for themeId yields the fallbackTheme specified in the constructor.

Implementation

bool hasThemeForId(int themeId) => _themes.containsKey(themeId);