GdprScreenManager constructor

GdprScreenManager(
  1. dynamic onNavigationMethod(
    1. BuildContext
    ), {
  2. List<String> bannerIds = const [],
  3. List<String> interstitialIds = const [],
  4. List<String> interRewardIds = const [],
  5. List<String> debugTestDeviceIds = const [],
  6. Widget loadingWidget = const Center(child: CircularProgressIndicator()),
  7. GdprDebugGeography debugGeography = GdprDebugGeography.disabled,
  8. bool debugShowDebugUI = false,
})

Initializes this singleton

Implementation

factory GdprScreenManager(
  final Function(BuildContext) onNavigationMethod, {
  final List<String> bannerIds = const [],
  final List<String> interstitialIds = const [],
  final List<String> interRewardIds = const [],
  final List<String> debugTestDeviceIds = const [],
  final Widget loadingWidget =
      const Center(child: CircularProgressIndicator()),
  final GdprDebugGeography debugGeography = GdprDebugGeography.disabled,
  final bool debugShowDebugUI = false,
}) =>
    _singleton
      .._onNavigationMethod = onNavigationMethod
      .._bannerIds = bannerIds
      .._interstitialIds = interstitialIds
      .._interRewardIds = interRewardIds
      .._loadingWidget = loadingWidget
      .._debugTestDeviceIds = debugTestDeviceIds
      .._debugGeography = debugGeography
      .._showDebugUI = debugShowDebugUI;