🙆riverpodでrefが要るので、widget以外でDI出来ないと思っていた。2023/03/31に公開FlutterRiverpodtech下記リンクにサンプルコードがある。 後ほど追記 https://riverpod.dev/docs/concepts/reading#obtaining-a-ref-object Discussion
Discussion