ThemeRepository constructor
- ThemeGeneratorService<
ThemeData> _generator, - ThemesDatasource _themes,
- UserRepository _user
A repository that manages the current theme.
Implementation
ThemeRepository(this._generator, this._themes, this._user) : super(_generator.generateTheme(_themes.defaultTheme)) {
_currentTheme = _themes.defaultTheme;
watch(_user);
}