injectable icon indicating copy to clipboard operation
injectable copied to clipboard

The annotation 'preResolve' can only be used on methods.

Open jamontes79 opened this issue 3 months ago • 5 comments

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();
}

jamontes79 avatar Apr 02 '24 10:04 jamontes79

same

user97116 avatar Apr 04 '24 03:04 user97116