setTheme method

void setTheme(
  1. ArcaneTheme theme
)

Updates the app's theme.

This method changes the theme of the entire application and triggers a rebuild. For more information, see Changing Themes.

@param theme The new theme to apply to the app

Implementation

void setTheme(ArcaneTheme theme) {
  setState(() {
    _theme = theme;
    actionedAnnounce("Theme Changed");
  });
}