hasTheme static method

bool hasTheme(
  1. String name
)

Checks if a theme with the given name exists.

Returns true if the theme exists, false otherwise.

Implementation

static bool hasTheme(String name) => _instance._themes.containsKey(name);