playerProviderFor top-level property

StateNotifierProviderFamily<PlayerStateNotifier, PlayerState?, String> playerProviderFor
final

Implementation

final playerProviderFor = StateNotifierProvider.family<PlayerStateNotifier, PlayerState?, String>((ref, playerId) {
  return ref.watch(
    pluginStateProvider.select((value) => value.players[playerId] ?? PlayerStateNotifier(keepAlive: false)),
  );
});