StreamDurationConfig constructor

const StreamDurationConfig({
  1. bool autoPlay = true,
  2. bool isCountUp = false,
  3. Duration periodic = const Duration(seconds: 1),
  4. CountDownConfig? countDownConfig,
  5. CountUpConfig? countUpConfig,
  6. Function? onDone,
})

StreamDurationConfig class contains configuration options for StreamDuration, which is a class that emits a stream of Duration values.

Implementation

const StreamDurationConfig({
  this.autoPlay = true,
  this.isCountUp = false,
  this.periodic = const Duration(seconds: 1),
  this.countDownConfig,
  this.countUpConfig,
  this.onDone,
});