NiceCookieConsent constructor
const
NiceCookieConsent({ - Key? key,
- bool visible = true,
- List<NiceCookieCategory> categories = const [],
- Map<NiceCookieCategoryType, bool> defaults = const {},
- NiceCookieConsentPosition position = NiceCookieConsentPosition.bottom,
- String? policyUrl,
- bool showDetails = false,
- String? title,
- String? message,
- String? acceptAllLabel,
- String? rejectAllLabel,
- String? saveLabel,
- String? settingsLabel,
- VoidCallback? onAcceptAll,
- VoidCallback? onRejectAll,
- void onSave(
- Map<NiceCookieCategoryType, bool> consents
)?,
})
Implementation
const NiceCookieConsent({
super.key,
this.visible = true,
this.categories = const [],
this.defaults = const {},
this.position = NiceCookieConsentPosition.bottom,
this.policyUrl,
this.showDetails = false,
this.title,
this.message,
this.acceptAllLabel,
this.rejectAllLabel,
this.saveLabel,
this.settingsLabel,
this.onAcceptAll,
this.onRejectAll,
this.onSave,
});