@@ -171,8 +171,8 @@ class InterstitialAdManager {
171171 if (requiredTransitions > 0 && _transitionCount >= requiredTransitions) {
172172 _logger.info ('Transition count meets threshold. Attempting to show ad.' );
173173 await _showAd ();
174- _transitionCount =
175- 0 ; // Reset counter after showing (or attempting to show)
174+ // Reset counter after showing (or attempting to show)
175+ _transitionCount = 0 ;
176176 } else {
177177 _logger.info (
178178 'Transition count ($_transitionCount ) has not met threshold ($requiredTransitions ).' ,
@@ -197,7 +197,8 @@ class InterstitialAdManager {
197197 }
198198
199199 final adToShow = _preloadedAd! ;
200- _preloadedAd = null ; // Clear the pre-loaded ad before showing
200+ // Clear the pre-loaded ad before showing
201+ _preloadedAd = null ;
201202
202203 try {
203204 switch (adToShow.provider) {
@@ -230,7 +231,9 @@ class InterstitialAdManager {
230231 } finally {
231232 // After the ad is shown or fails to show, dispose of it and
232233 // start pre-loading the next one for the next opportunity.
233- _disposePreloadedAd (); // Ensure the ad object is disposed
234+
235+ // Ensure the ad object is disposed
236+ _disposePreloadedAd ();
234237 unawaited (_maybePreloadAd (_appBloc.state));
235238 }
236239 }
@@ -268,7 +271,8 @@ class InterstitialAdManager {
268271 // Await the result of showDialog, which completes when the dialog is popped.
269272 await showDialog <void >(
270273 context: context,
271- barrierDismissible: false , // Prevent dismissing by tapping outside
274+ // Prevent dismissing by tapping outside
275+ barrierDismissible: false ,
272276 builder: (_) => LocalInterstitialAdDialog (
273277 localInterstitialAd: ad.adObject as LocalInterstitialAd ,
274278 ),
@@ -279,7 +283,8 @@ class InterstitialAdManager {
279283 // Await the result of showDialog, which completes when the dialog is popped.
280284 await showDialog <void >(
281285 context: context,
282- barrierDismissible: false , // Prevent dismissing by tapping outside
286+ // Prevent dismissing by tapping outside
287+ barrierDismissible: false ,
283288 builder: (_) => const DemoInterstitialAdDialog (),
284289 );
285290 }
0 commit comments