MovieCard.listItem constructor

const MovieCard.listItem({
  1. Key? key,
  2. required Movie movie,
  3. bool? fromCache,
  4. Duration? cacheAge,
  5. bool? cacheOnlyMode,
  6. VoidCallback? onTap,
  7. Widget? trailing,
  8. Widget? customSubtitle,
  9. FavoritesService? favoritesService,
  10. Widget? parentWidget,
})

Creates a list item-style movie card.

Implementation

const MovieCard.listItem({
  super.key,
  required this.movie,
  this.fromCache,
  this.cacheAge,
  this.cacheOnlyMode,
  this.onTap,
  this.trailing,
  this.customSubtitle,
  this.favoritesService,
  this.parentWidget,
})  : style = MovieCardStyle.listItem,
      width = 50,
      height = 75;