getWidget abstract method

Widget getWidget(
  1. BuildContext context, {
  2. VoidCallback? onDeleteItem,
  3. VoidCallback? onFavoriteChanged,
})

Displays the list item.

onDeleteItem is called when the user asks to remove the item. Without it, the item cannot be removed. onFavoriteChanged is called once the item changed its favorite status.

Implementation

Widget getWidget(
  BuildContext context, {
  VoidCallback? onDeleteItem,
  VoidCallback? onFavoriteChanged,
});