FlutterCookieConsentBanner constructor

const FlutterCookieConsentBanner({
  1. Key? key,
  2. String title = 'Cookie Consent',
  3. String message = 'We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.',
  4. String acceptButtonText = 'Accept',
  5. String declineButtonText = 'Decline',
  6. String settingsButtonText = 'Settings',
  7. required dynamic onAccept(
    1. bool
    ),
  8. required dynamic onDecline(
    1. bool
    ),
  9. required dynamic onSettings(),
  10. bool showSettings = true,
  11. CookieConsentStyle style = const CookieConsentStyle(),
})

Implementation

const FlutterCookieConsentBanner({
  super.key,
  this.title = 'Cookie Consent',
  this.message =
      'We use cookies to enhance your experience. By continuing to visit this site you agree to our use of cookies.',
  this.acceptButtonText = 'Accept',
  this.declineButtonText = 'Decline',
  this.settingsButtonText = 'Settings',
  required this.onAccept,
  required this.onDecline,
  required this.onSettings,
  this.showSettings = true,
  this.style = const CookieConsentStyle(),
});