AppTheme constructor

AppTheme({
  1. required String key,
  2. required ThemeData themeData,
})

Creates an instance of AppTheme.

Requires non-null values for both:

  • key: Used to uniquely identify the theme (e.g., for persistence)
  • themeData: Contains the actual styling information for the app

Implementation

AppTheme({required this.key, required this.themeData});