PlayerStateNotifier constructor
PlayerStateNotifier({
- PlayerState? player,
- void onDispose()?,
- required bool keepAlive,
Implementation
PlayerStateNotifier({PlayerState? player, this.onDispose, required this.keepAlive}) : super(player ?? const PlayerState(playerId: 'unknown')) {
positionUpdateTimer = Timer.periodic(const Duration(seconds: 1), _updatePosition);
}