init method
override
Initializes the applicationSettings and mediaSettings.
Implementation
@override
Future<void> init() async {
Log.debug('onInit()', '$runtimeType');
await _guard.protect(() async {
final DtoSettings? settings = await _settingsLocal.read(userId);
mediaSettings.value = settings?.media;
applicationSettings.value = settings?.application;
final DtoBackground? bytes = await _backgroundLocal.read(userId);
background.value = bytes?.bytes;
});
_initSettingsSubscription();
_initBackgroundSubscription();
super.onInit();
}