ToggleSlideComponent constructor

const ToggleSlideComponent({
  1. required void onPressed(),
  2. double height = 40,
  3. double width = 300,
  4. String label = '',
  5. Color textColor = Colors.white,
  6. Color color = Colors.purpleAccent,
  7. Color slideColor = Colors.purple,
  8. double iconSize = 24,
  9. IconData icon = Icons.check_circle_outline_rounded,
  10. Duration slideDuration = const Duration(milliseconds: 200),
  11. Duration completedAnimation = const Duration(milliseconds: 500),
  12. double borderRadius = 5,
  13. Key? key,
})

Implementation

const ToggleSlideComponent(
    {required this.onPressed,
    this.height = 40,
    this.width = 300,
    this.label = '',
    this.textColor = Colors.white,
    this.color = Colors.purpleAccent,
    this.slideColor = Colors.purple,
    this.iconSize = 24,
    this.icon = Icons.check_circle_outline_rounded,
    this.slideDuration = const Duration(milliseconds: 200),
    this.completedAnimation = const Duration(milliseconds: 500),
    this.borderRadius = 5,
    Key? key})
    : super(key: key);