Grain flutter app
1// GENERATED CODE - DO NOT MODIFY BY HAND
2
3part of 'profile_provider.dart';
4
5// **************************************************************************
6// RiverpodGenerator
7// **************************************************************************
8
9String _$profileNotifierHash() => r'4b8e3a8d4363beb885ead4ae7ce9c52101a6bf96';
10
11/// Copied from Dart SDK
12class _SystemHash {
13 _SystemHash._();
14
15 static int combine(int hash, int value) {
16 // ignore: parameter_assignments
17 hash = 0x1fffffff & (hash + value);
18 // ignore: parameter_assignments
19 hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
20 return hash ^ (hash >> 6);
21 }
22
23 static int finish(int hash) {
24 // ignore: parameter_assignments
25 hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
26 // ignore: parameter_assignments
27 hash = hash ^ (hash >> 11);
28 return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
29 }
30}
31
32abstract class _$ProfileNotifier
33 extends BuildlessAsyncNotifier<ProfileWithGalleries?> {
34 late final String did;
35
36 FutureOr<ProfileWithGalleries?> build(String did);
37}
38
39/// See also [ProfileNotifier].
40@ProviderFor(ProfileNotifier)
41const profileNotifierProvider = ProfileNotifierFamily();
42
43/// See also [ProfileNotifier].
44class ProfileNotifierFamily extends Family<AsyncValue<ProfileWithGalleries?>> {
45 /// See also [ProfileNotifier].
46 const ProfileNotifierFamily();
47
48 /// See also [ProfileNotifier].
49 ProfileNotifierProvider call(String did) {
50 return ProfileNotifierProvider(did);
51 }
52
53 @override
54 ProfileNotifierProvider getProviderOverride(
55 covariant ProfileNotifierProvider provider,
56 ) {
57 return call(provider.did);
58 }
59
60 static const Iterable<ProviderOrFamily>? _dependencies = null;
61
62 @override
63 Iterable<ProviderOrFamily>? get dependencies => _dependencies;
64
65 static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
66
67 @override
68 Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
69 _allTransitiveDependencies;
70
71 @override
72 String? get name => r'profileNotifierProvider';
73}
74
75/// See also [ProfileNotifier].
76class ProfileNotifierProvider
77 extends AsyncNotifierProviderImpl<ProfileNotifier, ProfileWithGalleries?> {
78 /// See also [ProfileNotifier].
79 ProfileNotifierProvider(String did)
80 : this._internal(
81 () => ProfileNotifier()..did = did,
82 from: profileNotifierProvider,
83 name: r'profileNotifierProvider',
84 debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
85 ? null
86 : _$profileNotifierHash,
87 dependencies: ProfileNotifierFamily._dependencies,
88 allTransitiveDependencies:
89 ProfileNotifierFamily._allTransitiveDependencies,
90 did: did,
91 );
92
93 ProfileNotifierProvider._internal(
94 super._createNotifier, {
95 required super.name,
96 required super.dependencies,
97 required super.allTransitiveDependencies,
98 required super.debugGetCreateSourceHash,
99 required super.from,
100 required this.did,
101 }) : super.internal();
102
103 final String did;
104
105 @override
106 FutureOr<ProfileWithGalleries?> runNotifierBuild(
107 covariant ProfileNotifier notifier,
108 ) {
109 return notifier.build(did);
110 }
111
112 @override
113 Override overrideWith(ProfileNotifier Function() create) {
114 return ProviderOverride(
115 origin: this,
116 override: ProfileNotifierProvider._internal(
117 () => create()..did = did,
118 from: from,
119 name: null,
120 dependencies: null,
121 allTransitiveDependencies: null,
122 debugGetCreateSourceHash: null,
123 did: did,
124 ),
125 );
126 }
127
128 @override
129 AsyncNotifierProviderElement<ProfileNotifier, ProfileWithGalleries?>
130 createElement() {
131 return _ProfileNotifierProviderElement(this);
132 }
133
134 @override
135 bool operator ==(Object other) {
136 return other is ProfileNotifierProvider && other.did == did;
137 }
138
139 @override
140 int get hashCode {
141 var hash = _SystemHash.combine(0, runtimeType.hashCode);
142 hash = _SystemHash.combine(hash, did.hashCode);
143
144 return _SystemHash.finish(hash);
145 }
146}
147
148@Deprecated('Will be removed in 3.0. Use Ref instead')
149// ignore: unused_element
150mixin ProfileNotifierRef on AsyncNotifierProviderRef<ProfileWithGalleries?> {
151 /// The parameter `did` of this provider.
152 String get did;
153}
154
155class _ProfileNotifierProviderElement
156 extends AsyncNotifierProviderElement<ProfileNotifier, ProfileWithGalleries?>
157 with ProfileNotifierRef {
158 _ProfileNotifierProviderElement(super.provider);
159
160 @override
161 String get did => (origin as ProfileNotifierProvider).did;
162}
163
164// ignore_for_file: type=lint
165// 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