// GENERATED CODE - DO NOT MODIFY BY HAND part of 'promotions_provider.dart'; // ************************************************************************** // RiverpodGenerator // ************************************************************************** // GENERATED CODE - DO NOT MODIFY BY HAND // ignore_for_file: type=lint, type=warning /// Promotions Provider /// /// Uses the same data source as news articles to avoid duplicate API calls. /// Converts NewsArticle to Promotion entity for display in PromotionSlider. /// Limited to 5 items max. /// /// Usage: /// ```dart /// // In a ConsumerWidget /// final promotionsAsync = ref.watch(promotionsProvider); /// /// promotionsAsync.when( /// data: (promotions) => PromotionSlider(promotions: promotions), /// loading: () => CircularProgressIndicator(), /// error: (error, stack) => ErrorWidget(error), /// ); /// ``` @ProviderFor(promotions) const promotionsProvider = PromotionsProvider._(); /// Promotions Provider /// /// Uses the same data source as news articles to avoid duplicate API calls. /// Converts NewsArticle to Promotion entity for display in PromotionSlider. /// Limited to 5 items max. /// /// Usage: /// ```dart /// // In a ConsumerWidget /// final promotionsAsync = ref.watch(promotionsProvider); /// /// promotionsAsync.when( /// data: (promotions) => PromotionSlider(promotions: promotions), /// loading: () => CircularProgressIndicator(), /// error: (error, stack) => ErrorWidget(error), /// ); /// ``` final class PromotionsProvider extends $FunctionalProvider< AsyncValue>, List, FutureOr> > with $FutureModifier>, $FutureProvider> { /// Promotions Provider /// /// Uses the same data source as news articles to avoid duplicate API calls. /// Converts NewsArticle to Promotion entity for display in PromotionSlider. /// Limited to 5 items max. /// /// Usage: /// ```dart /// // In a ConsumerWidget /// final promotionsAsync = ref.watch(promotionsProvider); /// /// promotionsAsync.when( /// data: (promotions) => PromotionSlider(promotions: promotions), /// loading: () => CircularProgressIndicator(), /// error: (error, stack) => ErrorWidget(error), /// ); /// ``` const PromotionsProvider._() : super( from: null, argument: null, retry: null, name: r'promotionsProvider', isAutoDispose: true, dependencies: null, $allTransitiveDependencies: null, ); @override String debugGetCreateSourceHash() => _$promotionsHash(); @$internal @override $FutureProviderElement> $createElement( $ProviderPointer pointer, ) => $FutureProviderElement(pointer); @override FutureOr> create(Ref ref) { return promotions(ref); } } String _$promotionsHash() => r'2eac0298d2b84ad5cc50faa6b8a015dbf7b7a1d3';