79314905

Date: 2024-12-29 03:19:58
Score: 1
Natty:
Report link

After registering SharedPreferences dependency. You can call

await sl.isReady<SharedPreferences>();

Inside setupSl() function (or whatever similar name you have). Which makes setupSl() Future and as already mentioned above we can make main function async to await setupSl().

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Jagdish Ghimire