StyledToggleable constructor

StyledToggleable({
  1. Key? key,
  2. VoidCallback? onChanged,
  3. bool? selected,
  4. required Style style,
  5. Style? hoveredStyle,
  6. Style? selectedStyle,
  7. Style? disabledStyle,
  8. Curve curve = Curves.linear,
  9. Duration duration = const Duration(milliseconds: 100),
  10. Widget? child,
  11. StyledComponentStateChildBuilder? builder,
})

Implementation

StyledToggleable(
    {Key? key,
    this.onChanged,
    this.selected,
    required this.style,
    this.hoveredStyle,
    this.selectedStyle,
    this.disabledStyle,
    this.curve = Curves.linear,
    this.duration = const Duration(milliseconds: 100),
    this.child,
    this.builder})
    : assert(selected != null || onChanged != null);