There quote is from Riverpod
documentation:
A StatefulWidget that can use Hook
It's usage is very similar to StatefulWidget, but use hooks inside State.build.
The difference is that it can use Hook, which allows HookWidget to store mutable data without implementing a State.
besides this, I can't find any sample code or another tutorial or any description more than the quote.
in this simple HookWidget
how can I implement that with StatefulHookWidget
?
class MyHomePage extends HookWidget {
@override
Widget build(BuildContext context) {
final store = useMemoized(() => MyStore());
return Container();
}
}