ColorIndicator constructor
const
ColorIndicator({
- Key? key,
- VoidCallback? onSelect,
- bool onSelectFocus = true,
- bool isSelected = false,
- bool selectedRequestsFocus = false,
- double elevation = 0,
- IconData selectedIcon = Icons.check,
- Color color = Colors.blue,
- double width = 40,
- double height = 40,
- double borderRadius = 10,
- bool hasBorder = false,
- 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.');