DifficultyToggle constructor
DifficultyToggle({
- required String startingDifficulty,
- required ValueChanged<
String?> onValueClick, - TextStyle? valueFontStyle,
- double spacing = 4.0,
- double size = 40,
- double? borderRadiusInside,
- double? borderRadiusOutside,
- Color colorBackground = const Color(0xFFE5E5E5),
- Color colorSlider = Colors.white,
- Duration animationDuration = const Duration(milliseconds: 200),
- 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);