SelectableChild constructor

const SelectableChild({
  1. Key? key,
  2. required bool selected,
  3. Widget? leading,
  4. Widget? title,
  5. Widget? suffixIcon,
  6. double? borderRadius,
  7. EdgeInsets? margin,
  8. EdgeInsets? padding,
  9. Color? color,
  10. 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);