estimatedTimeRemaining property

Duration get estimatedTimeRemaining

Implementation

Duration get estimatedTimeRemaining {
  if (_currentRoute == null || _progress >= 1.0) return Duration.zero;
  final totalDuration = _currentRoute!.duration;
  return Duration(seconds: ((1 - _progress) * totalDuration).round());
}