PlayerStateNotifier constructor

PlayerStateNotifier({
  1. PlayerState? player,
  2. void onDispose()?,
  3. 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);
}