105 lines
2.9 KiB
Dart
105 lines
2.9 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'cart_item_count_provider.dart';
|
|
|
|
// **************************************************************************
|
|
// RiverpodGenerator
|
|
// **************************************************************************
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint, type=warning
|
|
/// Provider that calculates total number of items in cart
|
|
/// This is optimized to only rebuild when the count changes
|
|
|
|
@ProviderFor(cartItemCount)
|
|
const cartItemCountProvider = CartItemCountProvider._();
|
|
|
|
/// Provider that calculates total number of items in cart
|
|
/// This is optimized to only rebuild when the count changes
|
|
|
|
final class CartItemCountProvider extends $FunctionalProvider<int, int, int>
|
|
with $Provider<int> {
|
|
/// Provider that calculates total number of items in cart
|
|
/// This is optimized to only rebuild when the count changes
|
|
const CartItemCountProvider._()
|
|
: super(
|
|
from: null,
|
|
argument: null,
|
|
retry: null,
|
|
name: r'cartItemCountProvider',
|
|
isAutoDispose: true,
|
|
dependencies: null,
|
|
$allTransitiveDependencies: null,
|
|
);
|
|
|
|
@override
|
|
String debugGetCreateSourceHash() => _$cartItemCountHash();
|
|
|
|
@$internal
|
|
@override
|
|
$ProviderElement<int> $createElement($ProviderPointer pointer) =>
|
|
$ProviderElement(pointer);
|
|
|
|
@override
|
|
int create(Ref ref) {
|
|
return cartItemCount(ref);
|
|
}
|
|
|
|
/// {@macro riverpod.override_with_value}
|
|
Override overrideWithValue(int value) {
|
|
return $ProviderOverride(
|
|
origin: this,
|
|
providerOverride: $SyncValueProvider<int>(value),
|
|
);
|
|
}
|
|
}
|
|
|
|
String _$cartItemCountHash() => r'78fe81648a02fb84477df3be3f08b27caa039203';
|
|
|
|
/// Provider that calculates unique items count in cart
|
|
|
|
@ProviderFor(cartUniqueItemCount)
|
|
const cartUniqueItemCountProvider = CartUniqueItemCountProvider._();
|
|
|
|
/// Provider that calculates unique items count in cart
|
|
|
|
final class CartUniqueItemCountProvider
|
|
extends $FunctionalProvider<int, int, int>
|
|
with $Provider<int> {
|
|
/// Provider that calculates unique items count in cart
|
|
const CartUniqueItemCountProvider._()
|
|
: super(
|
|
from: null,
|
|
argument: null,
|
|
retry: null,
|
|
name: r'cartUniqueItemCountProvider',
|
|
isAutoDispose: true,
|
|
dependencies: null,
|
|
$allTransitiveDependencies: null,
|
|
);
|
|
|
|
@override
|
|
String debugGetCreateSourceHash() => _$cartUniqueItemCountHash();
|
|
|
|
@$internal
|
|
@override
|
|
$ProviderElement<int> $createElement($ProviderPointer pointer) =>
|
|
$ProviderElement(pointer);
|
|
|
|
@override
|
|
int create(Ref ref) {
|
|
return cartUniqueItemCount(ref);
|
|
}
|
|
|
|
/// {@macro riverpod.override_with_value}
|
|
Override overrideWithValue(int value) {
|
|
return $ProviderOverride(
|
|
origin: this,
|
|
providerOverride: $SyncValueProvider<int>(value),
|
|
);
|
|
}
|
|
}
|
|
|
|
String _$cartUniqueItemCountHash() =>
|
|
r'51eec092c957d0d4819200fd935115db77c7f8d3';
|