HomeCard<T, O> constructor

const HomeCard<T, O>({
  1. required T item,
  2. required String name,
  3. required IconData iconData,
  4. required dynamic onTap(
    1. T item
    ),
  5. List<PopupIconMenuItem<O>>? menuItems,
  6. dynamic onMenuSelect(
    1. T item,
    2. O operation
    )?,
  7. Color? color,
  8. String? tooltip,
  9. double fontSize = 16,
  10. FontWeight? fontWeight,
  11. double iconSize = 42,
  12. BoxShadow boxShadow = const BoxShadow(color: Colors.black26, offset: Offset(1, 0.5), blurRadius: 6),
  13. Key? key,
})

Implementation

const HomeCard({
  required this.item,
  required this.name,
  required this.iconData,
  required this.onTap,
  this.menuItems,
  this.onMenuSelect,
  this.color,
  this.tooltip,
  this.fontSize = 16,
  this.fontWeight,
  this.iconSize = 42,
  this.boxShadow = const BoxShadow(
    color: Colors.black26,
    offset: Offset(1, 0.5),
    blurRadius: 6,
  ),
  super.key,
});