SelectedIcon constructor

const SelectedIcon({
  1. required bool selected,
  2. Key? key,
  3. Widget selectedIcon = const Icon(Icons.check_circle, color: Colors.green),
  4. Widget unselectedIcon = const Icon(Icons.circle_outlined, color: Colors.grey),
})

Create an instance.

Implementation

const SelectedIcon({
  required this.selected,
  super.key,
  this.selectedIcon = const Icon(
    Icons.check_circle,
    color: Colors.green,
  ),
  this.unselectedIcon = const Icon(
    Icons.circle_outlined,
    color: Colors.grey,
  ),
});