flame_riverpod library
Helpers for using Riverpod in conjunction with Flame, to share state from the game into other parts of your application, or from other parts of your application into your game.
Classes
- ComponentRef
-
A wrapper around
WidgetRef. Methods that correspond to interactions with the widget tree, such asWidgetRef.watchare not exposed. - RiverpodAwareGameNotifier
-
Simple
StateNotifierthat holds the currentRiverpodAwareGameinstance.
Properties
-
riverpodAwareGameProvider
→ StateNotifierProvider<
RiverpodAwareGameNotifier, HasComponentRef?> -
Simple provider that returns a Riverpod-Aware Game instance.
final