GameTileProps class
Game tile component properties.
Constructors
-
GameTileProps({required String name, String? iconUrl, Widget? icon, bool selected = false, void onTap()?, bool popular = false, String? badge, String? subtitle, bool isNew = false, List<
GamePlatform> platforms = const [], String? href, bool showHoverEffects = true, bool showPlatformIcons = true, String? ctaText, String? height, GameTileVariant variant = GameTileVariant.compact, int? animationDelayMs}) -
const
-
GameTileProps.card({required String name, String? iconUrl, Widget? icon, bool selected = false, void onTap()?, bool popular = false, String? badge, String? subtitle, bool isNew = false, List<
GamePlatform> platforms = const [], String? href, bool showHoverEffects = true, bool showPlatformIcons = true, String? ctaText = 'Get Started', String? height = '420px', int? animationDelayMs}) -
Creates a card-style game tile with image and info sections.
const
Properties
- animationDelayMs → int?
-
Animation delay in milliseconds for staggered grid animations.
final
- badge → String?
-
final
- ctaText → String?
-
CTA button text (e.g., "Get Started").
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- height → String?
-
Custom height for the tile.
final
- href → String?
-
Link destination (alternative to onTap for navigation).
final
- icon → Widget?
-
final
- iconUrl → String?
-
final
- isNew → bool
-
Whether the game is new (shows NEW badge).
final
- name → String
-
final
- onTap → void Function()?
-
final
-
platforms
→ List<
GamePlatform> -
List of supported platforms (for platform icons).
final
- popular → bool
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- selected → bool
-
final
- showHoverEffects → bool
-
Whether to show hover effects (scale, shadow).
final
- showPlatformIcons → bool
-
Whether to show platform icons.
final
- subtitle → String?
-
final
- variant → GameTileVariant
-
Visual variant of the tile.
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited