TimerState constructor

TimerState({
  1. required int secondsRemaining,
  2. bool isRunning = false,
  3. bool isPaused = false,
})

Creates a TimerState with the specified values.

By default, isRunning and isPaused are set to false.

Implementation

TimerState({
  required this.secondsRemaining,
  this.isRunning = false,
  this.isPaused = false,
});