SelectableChild constructor
const
SelectableChild({
- Key? key,
- required bool selected,
- Widget? leading,
- Widget? title,
- Widget? suffixIcon,
- double? borderRadius,
- EdgeInsets? margin,
- EdgeInsets? padding,
- Color? color,
- Color? selectedColor,
Implementation
const SelectableChild({
Key? key,
required this.selected,
this.leading,
this.title,
this.suffixIcon,
double? borderRadius,
EdgeInsets? margin,
EdgeInsets? padding,
Color? color,
Color? selectedColor,
}) : color = color ?? Colors.white,
selectedColor = selectedColor ?? _selectedColor,
borderRadius = borderRadius ?? 10.0,
margin = margin ?? const EdgeInsets.all(5.0),
padding = padding ?? const EdgeInsets.all(5.0),
super(key: key);