File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,16 @@ import 'package:logging/logging.dart';
1616/// the cache is cleared (e.g., on a full feed refresh).
1717/// {@endtemplate}
1818class AdCacheService {
19+
20+ /// Factory constructor to provide the singleton instance.
21+ factory AdCacheService () => _instance;
22+
1923 /// Private constructor for the singleton pattern.
2024 AdCacheService ._internal () : _logger = Logger ('AdCacheService' );
2125
2226 /// The single instance of [AdCacheService] .
2327 static final AdCacheService _instance = AdCacheService ._internal ();
2428
25- /// Factory constructor to provide the singleton instance.
26- factory AdCacheService () => _instance;
27-
2829 final Logger _logger;
2930
3031 /// A map to store loaded native ad objects, keyed by their unique ID.
You can’t perform that action at this time.
0 commit comments