GameTileProps.card constructor

const GameTileProps.card({
  1. required String name,
  2. String? iconUrl,
  3. Widget? icon,
  4. bool selected = false,
  5. void onTap()?,
  6. bool popular = false,
  7. String? badge,
  8. String? subtitle,
  9. bool isNew = false,
  10. List<GamePlatform> platforms = const [],
  11. String? href,
  12. bool showHoverEffects = true,
  13. bool showPlatformIcons = true,
  14. String? ctaText = 'Get Started',
  15. String? height = '420px',
  16. int? animationDelayMs,
})

Creates a card-style game tile with image and info sections.

Implementation

const GameTileProps.card({
  required this.name,
  this.iconUrl,
  this.icon,
  this.selected = false,
  this.onTap,
  this.popular = false,
  this.badge,
  this.subtitle,
  this.isNew = false,
  this.platforms = const [],
  this.href,
  this.showHoverEffects = true,
  this.showPlatformIcons = true,
  this.ctaText = 'Get Started',
  this.height = '420px',
  this.animationDelayMs,
}) : variant = GameTileVariant.card;