StopwatchWidget constructor

const StopwatchWidget({
  1. Key? key,
  2. EdgeInsetsGeometry? padding = const EdgeInsets.all(10),
  3. TextStyle style = const TextStyle(fontSize: 20, fontWeight: FontWeight.bold),
  4. bool showHours = true,
  5. bool showMinutes = true,
  6. bool showSeconds = true,
  7. bool showMilliseconds = false,
})

Implementation

const StopwatchWidget({
  super.key,
  this.padding = const EdgeInsets.all(10),
  this.style = const TextStyle(
    fontSize: 20,
    fontWeight: FontWeight.bold,
  ),
  this.showHours = true,
  this.showMinutes = true,
  this.showSeconds = true,
  this.showMilliseconds = false,
});