NiceCookieConsent constructor

const NiceCookieConsent({
  1. Key? key,
  2. bool visible = true,
  3. List<NiceCookieCategory> categories = const [],
  4. Map<NiceCookieCategoryType, bool> defaults = const {},
  5. NiceCookieConsentPosition position = NiceCookieConsentPosition.bottom,
  6. String? policyUrl,
  7. bool showDetails = false,
  8. String? title,
  9. String? message,
  10. String? acceptAllLabel,
  11. String? rejectAllLabel,
  12. String? saveLabel,
  13. String? settingsLabel,
  14. VoidCallback? onAcceptAll,
  15. VoidCallback? onRejectAll,
  16. void onSave(
    1. 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,
});