wrapBanner static method

Widget wrapBanner({
  1. required Widget child,
  2. CookieBanner? banner,
})

Wrap Cookie.wrapBanner(child) around your Site to show the CookieBanner if needed. Create your own CookieBanner by creating your own Banner Class which extends CookieBanner. IMPORTANT: Don't forget to change the default value of your main-cookie-id: acceptedCookiesId.

Implementation

static Widget wrapBanner({required Widget child, CookieBanner? banner}) =>
    Scaffold(body: _WrapBanner(child, banner: banner));