injectable
injectable copied to clipboard
The annotation 'preResolve' can only be used on methods.
After upgrading to the latest version 2.4.1
, I'm getting the following warning in one of the examples used in the documentation:
The annotation 'preResolve' can only be used on methods
@module
abstract class RegisterModule {
@preResolve
Future<SharedPreferences> get prefs => SharedPreferences.getInstance();
}
same