ColorIndicator constructor

const ColorIndicator({
  1. Key? key,
  2. VoidCallback? onSelect,
  3. bool onSelectFocus = true,
  4. bool isSelected = false,
  5. bool selectedRequestsFocus = false,
  6. double elevation = 0,
  7. IconData selectedIcon = Icons.check,
  8. Color color = Colors.blue,
  9. double width = 40,
  10. double height = 40,
  11. double borderRadius = 10,
  12. bool hasBorder = false,
  13. Color? borderColor,
})

Default const constructor for the color indicator.

Implementation

const ColorIndicator({
  super.key,
  this.onSelect,
  this.onSelectFocus = true,
  this.isSelected = false,
  this.selectedRequestsFocus = false,
  this.elevation = 0,
  this.selectedIcon = Icons.check,
  this.color = Colors.blue,
  this.width = 40,
  this.height = 40,
  this.borderRadius = 10,
  this.hasBorder = false,
  this.borderColor,
})  : assert(elevation >= 0, 'Elevation must be greater or equal to 0.'),
      assert(width > 0, 'Width must be positive.'),
      assert(height > 0, 'Height must be positive.'),
      assert(borderRadius >= 0,
          'The border radius must be greater or equal to 0.');