// GENERATED CODE - DO NOT MODIFY BY HAND part of 'sharedPrefs.dart'; // ************************************************************************** // RiverpodGenerator // ************************************************************************** String _$sharedPrefValueHash() => r'6c78fac8d11d0df162d4d53f465c1c8535fcd150'; /// Copied from Dart SDK class _SystemHash { _SystemHash._(); static int combine(int hash, int value) { // ignore: parameter_assignments hash = 0x1fffffff & (hash + value); // ignore: parameter_assignments hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10)); return hash ^ (hash >> 6); } static int finish(int hash) { // ignore: parameter_assignments hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3)); // ignore: parameter_assignments hash = hash ^ (hash >> 11); return 0x1fffffff & (hash + ((0x00003fff & hash) << 15)); } } abstract class _$SharedPrefValue extends BuildlessAutoDisposeNotifier { late final String key; late final T defaultValue; T build( String key, T defaultValue, ); } /// See also [SharedPrefValue]. @ProviderFor(SharedPrefValue) const sharedPrefValueProvider = SharedPrefValueFamily(); /// See also [SharedPrefValue]. class SharedPrefValueFamily extends Family { /// See also [SharedPrefValue]. const SharedPrefValueFamily(); /// See also [SharedPrefValue]. SharedPrefValueProvider call( String key, T defaultValue, ) { return SharedPrefValueProvider( key, defaultValue, ); } @override SharedPrefValueProvider getProviderOverride( covariant SharedPrefValueProvider provider, ) { return call( provider.key, provider.defaultValue, ); } static const Iterable? _dependencies = null; @override Iterable? get dependencies => _dependencies; static const Iterable? _allTransitiveDependencies = null; @override Iterable? get allTransitiveDependencies => _allTransitiveDependencies; @override String? get name => r'sharedPrefValueProvider'; } /// See also [SharedPrefValue]. class SharedPrefValueProvider extends AutoDisposeNotifierProviderImpl { /// See also [SharedPrefValue]. SharedPrefValueProvider( String key, T defaultValue, ) : this._internal( () => SharedPrefValue() ..key = key ..defaultValue = defaultValue, from: sharedPrefValueProvider, name: r'sharedPrefValueProvider', debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product') ? null : _$sharedPrefValueHash, dependencies: SharedPrefValueFamily._dependencies, allTransitiveDependencies: SharedPrefValueFamily._allTransitiveDependencies, key: key, defaultValue: defaultValue, ); SharedPrefValueProvider._internal( super._createNotifier, { required super.name, required super.dependencies, required super.allTransitiveDependencies, required super.debugGetCreateSourceHash, required super.from, required this.key, required this.defaultValue, }) : super.internal(); final String key; final T defaultValue; @override T runNotifierBuild( covariant SharedPrefValue notifier, ) { return notifier.build( key, defaultValue, ); } @override Override overrideWith(SharedPrefValue Function() create) { return ProviderOverride( origin: this, override: SharedPrefValueProvider._internal( () => create() ..key = key ..defaultValue = defaultValue, from: from, name: null, dependencies: null, allTransitiveDependencies: null, debugGetCreateSourceHash: null, key: key, defaultValue: defaultValue, ), ); } @override AutoDisposeNotifierProviderElement createElement() { return _SharedPrefValueProviderElement(this); } @override bool operator ==(Object other) { return other is SharedPrefValueProvider && other.key == key && other.defaultValue == defaultValue; } @override int get hashCode { var hash = _SystemHash.combine(0, runtimeType.hashCode); hash = _SystemHash.combine(hash, key.hashCode); hash = _SystemHash.combine(hash, defaultValue.hashCode); return _SystemHash.finish(hash); } } @Deprecated('Will be removed in 3.0. Use Ref instead') // ignore: unused_element mixin SharedPrefValueRef on AutoDisposeNotifierProviderRef { /// The parameter `key` of this provider. String get key; /// The parameter `defaultValue` of this provider. T get defaultValue; } class _SharedPrefValueProviderElement extends AutoDisposeNotifierProviderElement with SharedPrefValueRef { _SharedPrefValueProviderElement(super.provider); @override String get key => (origin as SharedPrefValueProvider).key; @override T get defaultValue => (origin as SharedPrefValueProvider).defaultValue; } // ignore_for_file: type=lint // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package