TimerView constructor

const TimerView({
  1. Key? key,
  2. required Color textColor,
  3. int duration = 0,
  4. double textSize = 16,
  5. TextStyle? labelTextStyle,
  6. TextStyle? valueTextStyle,
  7. void onUpdated(
    1. int
    )?,
  8. Duration interval = const Duration(milliseconds: 1000),
})

Implementation

const TimerView({
  super.key,
  required this.textColor,
  this.duration = 0,
  this.textSize = 16,
  this.labelTextStyle,
  this.valueTextStyle,
  this.onUpdated,
  this.interval = const Duration(milliseconds: 1000),
});