Widget

RiverpodAwareGameWidget

RiverpodAwareGameWidget is a GameWidget with a State object of type RiverpodAwareGameWidgetState.

The required GlobalKey argument is used to provide Components using RiverpodComponentMixin access to Providers via RiverpodAwareGameWidgetState.

RiverpodAwareGameWidgetState

RiverpodAwareGameWidgetState performs the duties associated with the ConsumerStatefulElement in flutter_riverpod and GameWidgetState in flame.