GdprScreenManager class

This class is a convenience singleton to make GdprInitialScreen and GdprUpdateScreen reusable with the same configuration.

The initial consent form will check if a consent is necessary first and immediately return without showing a consent form if not. This form is meant to get the initial consent of a user.

The update consent form will ALWAYS show its consent form. This form is meant to change a user's consent.

Usage:

GdprScreenManager( ... params ...);

GdprScreenManager( ... params ...).initialGdprScreen();

Scaffold(body:
  GdprScreenManager.getInitialGdprScreen());

Scaffold(body:
  GdprScreenManager.getInitialResetGdprScreen());

Scaffold(body:
  GdprScreenManager.getUpdateGdprScreen());

Constructors

GdprScreenManager(dynamic onNavigationMethod(BuildContext), {List<String> bannerIds = const [], List<String> interstitialIds = const [], List<String> interRewardIds = const [], List<String> debugTestDeviceIds = const [], Widget loadingWidget = const Center(child: CircularProgressIndicator()), GdprDebugGeography debugGeography = GdprDebugGeography.disabled, bool debugShowDebugUI = false})
Initializes this singleton
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getInitialGdprScreen() GdprInitialScreen
Returns a GdprInitialScreen. Useful for calling after instantiating this singleton class.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

initialGdprScreen() GdprInitialScreen
Returns a GdprInitialScreen.
initialResetGdprScreen() GdprInitialScreen
Returns a GdprInitialScreen after reseting the GDPR consent values.
updateGdprScreen() GdprUpdateScreen
Returns a GdprUpdateScreen.