DifficultyToggle constructor

DifficultyToggle({
  1. required String startingDifficulty,
  2. required ValueChanged<String?> onValueClick,
  3. TextStyle? valueFontStyle,
  4. double spacing = 4.0,
  5. double size = 40,
  6. double? borderRadiusInside,
  7. double? borderRadiusOutside,
  8. Color colorBackground = const Color(0xFFE5E5E5),
  9. Color colorSlider = Colors.white,
  10. Duration animationDuration = const Duration(milliseconds: 200),
  11. List<BoxShadow>? boxShadow,
})

Implementation

DifficultyToggle({
  required this.startingDifficulty,
  required this.onValueClick,
  this.valueFontStyle,
  this.spacing = 4.0,
  this.size = 40,
  this.borderRadiusInside,
  this.borderRadiusOutside,
  this.colorBackground = const Color(0xFFE5E5E5),
  this.colorSlider = Colors.white,
  this.animationDuration = const Duration(milliseconds: 200),
  this.boxShadow,
})  : assert(startingDifficulty != null),
      assert(onValueClick != null);