SelectionSettings constructor

SelectionSettings({
  1. bool? enable,
  2. Color? selectedColor,
  3. Color? selectedBorderColor,
  4. double? selectedBorderWidth,
  5. Color? unselectedColor,
  6. Color? unselectedBorderColor,
  7. double? unselectedBorderWidth,
  8. double? selectedOpacity,
  9. double? unselectedOpacity,
  10. RangeController? selectionController,
})

Creating an argument constructor of SelectionSettings class.

Implementation

SelectionSettings(
    {bool? enable,
    this.selectedColor,
    this.selectedBorderColor,
    this.selectedBorderWidth,
    this.unselectedColor,
    this.unselectedBorderColor,
    this.unselectedBorderWidth,
    double? selectedOpacity,
    double? unselectedOpacity,
    this.selectionController})
    : enable = enable ?? false,
      selectedOpacity = selectedOpacity ?? 1.0,
      unselectedOpacity = unselectedOpacity ?? 0.5;