scheduleOnWifi method

void scheduleOnWifi()

Schedules eviction to run when the device is connected to Wi-Fi.

This requires integration with a platform-specific connectivity detection mechanism.

Implementation

void scheduleOnWifi() {
  if (_isRunning) {
    _log.warning('Scheduler is already running. Stop it first.');
    return;
  }

  _conditions.add(EvictionTiming.onWifi);
  // This would typically involve setting up a listener for connectivity events
  // For now, we'll just log a message
  _log.info('Scheduled eviction when device is on Wi-Fi (not implemented)');
  _isRunning = true;
}