SelectableContainer constructor

SelectableContainer({
  1. required bool selected,
  2. Color? marginColor,
  3. Color? unselectedBackgroundColor,
  4. Color? selectedBackgroundColor,
  5. Color? unselectedBackgroundColorIcon,
  6. Color? selectedBackgroundColorIcon,
  7. Color? selectedBorderColor,
  8. Color? unselectedBorderColor,
  9. Color? selectedBorderColorIcon,
  10. Color? unselectedBorderColorIcon,
  11. @Deprecated('Use onValueChanged') Function? onPressed,
  12. required ValueChanged<bool> onValueChanged,
  13. int iconSize = 16,
  14. Color iconColor = Colors.white,
  15. IconData icon = Icons.check,
  16. IconData? unselectedIcon,
  17. Alignment iconAlignment = Alignment.topRight,
  18. int borderSize = 2,
  19. double selectedOpacity = 1.0,
  20. double unselectedOpacity = 0.5,
  21. int opacityAnimationDuration = 600,
  22. double padding = 0,
  23. double elevation = 0.0,
  24. double borderRadius = 10.0,
  25. double topMargin = 0.0,
  26. double bottomMargin = 0.0,
  27. double leftMargin = 0.0,
  28. double rightMargin = 0.0,
  29. double? topIconPosition,
  30. double? bottomIconPosition,
  31. double? leftIconPosition,
  32. double? rightIconPosition,
  33. required Widget? child,
})

Implementation

SelectableContainer(
    {required this.selected,
    this.marginColor,
    this.unselectedBackgroundColor,
    this.selectedBackgroundColor,
    this.unselectedBackgroundColorIcon,
    this.selectedBackgroundColorIcon,
    this.selectedBorderColor,
    this.unselectedBorderColor,
    this.selectedBorderColorIcon,
    this.unselectedBorderColorIcon,
    @Deprecated('Use onValueChanged') this.onPressed,
    required this.onValueChanged,
    this.iconSize = 16,
    this.iconColor = Colors.white,
    this.icon = Icons.check,
    this.unselectedIcon,
    this.iconAlignment = Alignment.topRight,
    this.borderSize = 2,
    this.selectedOpacity = 1.0,
    this.unselectedOpacity = 0.5,
    this.opacityAnimationDuration = 600,
    this.padding = 0,
    this.elevation = 0.0,
    this.borderRadius = 10.0,
    this.topMargin = 0.0,
    this.bottomMargin = 0.0,
    this.leftMargin = 0.0,
    this.rightMargin = 0.0,
    this.topIconPosition,
    this.bottomIconPosition,
    this.leftIconPosition,
    this.rightIconPosition,
    required this.child});