Skip to content

Commit

Permalink
Merge pull request #468 from minhdanh/develop
Browse files Browse the repository at this point in the history
Fix bucket is null because of variable shadowing
  • Loading branch information
martijn00 authored Sep 17, 2024
2 parents 87186d4 + 584b356 commit 3d18fcf
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@ class FirebaseCacheManager extends CacheManager {
static const key = 'firebaseCache';

static final FirebaseCacheManager _instance =
FirebaseCacheManager._(retryOptions: retryOptions, bucket: bucket);
FirebaseCacheManager._(retryOptions: _retryOptions, bucket: _bucket);

static RetryOptions? retryOptions;
static RetryOptions? _retryOptions;

static String? bucket;
static String? _bucket;

factory FirebaseCacheManager({RetryOptions? retryOptions, String? bucket}) {
bucket = bucket;
retryOptions = retryOptions;
_bucket = bucket;
_retryOptions = retryOptions;
return _instance;
}

Expand Down

0 comments on commit 3d18fcf

Please sign in to comment.