AiutaDataProvider constructor
AiutaDataProvider({
- required ValueListenable<
bool> isUserConsentObtained, - required ValueListenable<
List< uploadedImages,AiutaHistoryImage> > - required ValueListenable<
List< generatedImages,AiutaHistoryImage> > - required AiutaDataListeners listeners,
Create a new instance of AiutaDataProvider.
Implementation
AiutaDataProvider({
required this.isUserConsentObtained,
required this.uploadedImages,
required this.generatedImages,
required this.listeners,
}) : _isUserConsentObtained = isUserConsentObtained.value,
_uploadedImages = uploadedImages.value,
_generatedImages = generatedImages.value {
isUserConsentObtained.addListener(() {
_isUserConsentObtained = isUserConsentObtained.value;
});
uploadedImages.addListener(() {
_uploadedImages = uploadedImages.value;
});
generatedImages.addListener(() {
_generatedImages = generatedImages.value;
});
}