I have been using cache manager on old flutter (no null safety)
I use this module cause its a dependency of cached_network_image
Current issue:
I cannot use it on my fresh app. (null safety)
I created a new application and imported only this package.
My build stops when I try to test this: var file = DefaultCacheManager();
Then I get this long error message:
Error: Error when reading '../../../../flutter/.pub-cache/hosted/pub.dartlang.org/synchronized-3.0.0+2/lib/synchronized.dart': The system cannot find the path specified.
import 'package:synchronized/synchronized.dart';
: Error: Type 'Lock' not found.
../…/src/factory_mixin.dart:48
Lock _getDatabaseOpenLock(String path) => _NamedLock(path).lock;
🔙 Regression
I have been using cache manager on old flutter (no null safety)
I use this module cause its a dependency of cached_network_image
Current issue:
I cannot use it on my fresh app. (null safety) I created a new application and imported only this package. My build stops when I try to test this: var file = DefaultCacheManager();
Then I get this long error message:
Error: Error when reading '../../../../flutter/.pub-cache/hosted/pub.dartlang.org/synchronized-3.0.0+2/lib/synchronized.dart': The system cannot find the path specified.
import 'package:synchronized/synchronized.dart';
: Error: Type 'Lock' not found. ../…/src/factory_mixin.dart:48 Lock _getDatabaseOpenLock(String path) => _NamedLock(path).lock;
: Error: Method not found: 'Lock'. ../…/src/factory_mixin.dart:19 return cacheLocks[name] ??= NamedLock.(name, Lock(reentrant: true));
Error: 'Lock' isn't a type. ../…/src/database_mixin.dart:249 final Lock rawLock = Lock();
Error: Method not found: 'Lock'. ../…/src/database_mixin.dart:587 final Lock _closeLock = Lock();
note: I also imported synchronized.dart
Version: 3.3.0
Platform: