SelectionBehavior constructor

SelectionBehavior({
  1. bool enable = false,
  2. Color? selectedColor,
  3. Color? selectedBorderColor,
  4. double? selectedBorderWidth,
  5. Color? unselectedColor,
  6. Color? unselectedBorderColor,
  7. double? unselectedBorderWidth,
  8. double selectedOpacity = 1.0,
  9. double unselectedOpacity = 0.5,
  10. RangeController? selectionController,
  11. bool toggleSelection = true,
})

Creating an argument constructor of SelectionBehavior class.

Implementation

SelectionBehavior({
  this.enable = false,
  this.selectedColor,
  this.selectedBorderColor,
  this.selectedBorderWidth,
  this.unselectedColor,
  this.unselectedBorderColor,
  this.unselectedBorderWidth,
  this.selectedOpacity = 1.0,
  this.unselectedOpacity = 0.5,
  this.selectionController,
  this.toggleSelection = true,
});