BannerRepository class abstract
Repository responsible for retrieving promotional banners and reporting engagement metrics (views/clicks) back to the backend.
- Inheritance
-
- Object
- CoreRepository
- BannerRepository
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
fetchBanners(
{String? placement, String? locale, Map< String, dynamic> ? filters}) → Future<List< PromoBanner> > -
Load banners for a placement (e.g.
home_hero,cart_footer). -
initialize(
) → void -
Initialize the repository
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
trackBannerClick(
String bannerId, {Map< String, dynamic> ? metadata}) → Future<void> - Track when the user taps/clicks a banner.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited