changeTheme method

void changeTheme(
  1. ThemeData theme
)

Function to change the theme of the application.

Parameters:

  • theme: The new theme to apply.

Implementation

void changeTheme(ThemeData theme) {
  rootController.setTheme(theme);
}