veilidchat/lib/providers/account.g.dart

201 lines
6.4 KiB
Dart
Raw Normal View History

2023-07-28 20:36:05 -04:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'account.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
2023-12-21 12:10:54 -05:00
String _$fetchAccountInfoHash() => r'3d2e3b3ddce5158d03bceaf82cdb35bae000280c';
2023-07-28 20:36:05 -04:00
/// 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));
}
}
2023-08-01 00:39:50 -04:00
/// Get an account from the identity key and if it is logged in and we
/// have its secret available, return the account record contents
///
2023-12-21 12:10:54 -05:00
/// Copied from [fetchAccountInfo].
@ProviderFor(fetchAccountInfo)
const fetchAccountInfoProvider = FetchAccountInfoFamily();
2023-07-28 20:36:05 -04:00
2023-08-01 00:39:50 -04:00
/// Get an account from the identity key and if it is logged in and we
/// have its secret available, return the account record contents
///
2023-12-21 12:10:54 -05:00
/// Copied from [fetchAccountInfo].
class FetchAccountInfoFamily extends Family<AsyncValue<AccountInfo>> {
2023-08-01 00:39:50 -04:00
/// Get an account from the identity key and if it is logged in and we
/// have its secret available, return the account record contents
///
2023-12-21 12:10:54 -05:00
/// Copied from [fetchAccountInfo].
const FetchAccountInfoFamily();
2023-07-28 20:36:05 -04:00
2023-08-01 00:39:50 -04:00
/// Get an account from the identity key and if it is logged in and we
/// have its secret available, return the account record contents
///
2023-12-21 12:10:54 -05:00
/// Copied from [fetchAccountInfo].
FetchAccountInfoProvider call({
2023-07-28 20:36:05 -04:00
required Typed<FixedEncodedString43> accountMasterRecordKey,
}) {
2023-12-21 12:10:54 -05:00
return FetchAccountInfoProvider(
2023-07-28 20:36:05 -04:00
accountMasterRecordKey: accountMasterRecordKey,
);
}
@override
2023-12-21 12:10:54 -05:00
FetchAccountInfoProvider getProviderOverride(
covariant FetchAccountInfoProvider provider,
2023-07-28 20:36:05 -04:00
) {
return call(
accountMasterRecordKey: provider.accountMasterRecordKey,
);
}
static const Iterable<ProviderOrFamily>? _dependencies = null;
@override
Iterable<ProviderOrFamily>? get dependencies => _dependencies;
static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
@override
Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
_allTransitiveDependencies;
@override
2023-12-21 12:10:54 -05:00
String? get name => r'fetchAccountInfoProvider';
2023-07-28 20:36:05 -04:00
}
2023-08-01 00:39:50 -04:00
/// Get an account from the identity key and if it is logged in and we
/// have its secret available, return the account record contents
///
2023-12-21 12:10:54 -05:00
/// Copied from [fetchAccountInfo].
class FetchAccountInfoProvider extends AutoDisposeFutureProvider<AccountInfo> {
2023-08-01 00:39:50 -04:00
/// Get an account from the identity key and if it is logged in and we
/// have its secret available, return the account record contents
///
2023-12-21 12:10:54 -05:00
/// Copied from [fetchAccountInfo].
FetchAccountInfoProvider({
2023-09-26 18:46:02 -04:00
required Typed<FixedEncodedString43> accountMasterRecordKey,
}) : this._internal(
2023-12-21 12:10:54 -05:00
(ref) => fetchAccountInfo(
ref as FetchAccountInfoRef,
2023-07-28 20:36:05 -04:00
accountMasterRecordKey: accountMasterRecordKey,
),
2023-12-21 12:10:54 -05:00
from: fetchAccountInfoProvider,
name: r'fetchAccountInfoProvider',
2023-07-28 20:36:05 -04:00
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
2023-12-21 12:10:54 -05:00
: _$fetchAccountInfoHash,
dependencies: FetchAccountInfoFamily._dependencies,
2023-07-28 20:36:05 -04:00
allTransitiveDependencies:
2023-12-21 12:10:54 -05:00
FetchAccountInfoFamily._allTransitiveDependencies,
2023-09-26 18:46:02 -04:00
accountMasterRecordKey: accountMasterRecordKey,
2023-07-28 20:36:05 -04:00
);
2023-12-21 12:10:54 -05:00
FetchAccountInfoProvider._internal(
2023-09-26 18:46:02 -04:00
super._createNotifier, {
required super.name,
required super.dependencies,
required super.allTransitiveDependencies,
required super.debugGetCreateSourceHash,
required super.from,
required this.accountMasterRecordKey,
}) : super.internal();
2023-07-28 20:36:05 -04:00
final Typed<FixedEncodedString43> accountMasterRecordKey;
2023-09-26 18:46:02 -04:00
@override
Override overrideWith(
2023-12-21 12:10:54 -05:00
FutureOr<AccountInfo> Function(FetchAccountInfoRef provider) create,
2023-09-26 18:46:02 -04:00
) {
return ProviderOverride(
origin: this,
2023-12-21 12:10:54 -05:00
override: FetchAccountInfoProvider._internal(
(ref) => create(ref as FetchAccountInfoRef),
2023-09-26 18:46:02 -04:00
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
accountMasterRecordKey: accountMasterRecordKey,
),
);
}
@override
AutoDisposeFutureProviderElement<AccountInfo> createElement() {
2023-12-21 12:10:54 -05:00
return _FetchAccountInfoProviderElement(this);
2023-09-26 18:46:02 -04:00
}
2023-07-28 20:36:05 -04:00
@override
bool operator ==(Object other) {
2023-12-21 12:10:54 -05:00
return other is FetchAccountInfoProvider &&
2023-07-28 20:36:05 -04:00
other.accountMasterRecordKey == accountMasterRecordKey;
}
@override
int get hashCode {
var hash = _SystemHash.combine(0, runtimeType.hashCode);
hash = _SystemHash.combine(hash, accountMasterRecordKey.hashCode);
return _SystemHash.finish(hash);
}
}
2023-08-02 21:09:28 -04:00
2023-12-21 12:10:54 -05:00
mixin FetchAccountInfoRef on AutoDisposeFutureProviderRef<AccountInfo> {
2023-09-26 18:46:02 -04:00
/// The parameter `accountMasterRecordKey` of this provider.
Typed<FixedEncodedString43> get accountMasterRecordKey;
}
2023-12-21 12:10:54 -05:00
class _FetchAccountInfoProviderElement
extends AutoDisposeFutureProviderElement<AccountInfo>
with FetchAccountInfoRef {
_FetchAccountInfoProviderElement(super.provider);
2023-09-26 18:46:02 -04:00
@override
Typed<FixedEncodedString43> get accountMasterRecordKey =>
2023-12-21 12:10:54 -05:00
(origin as FetchAccountInfoProvider).accountMasterRecordKey;
2023-09-26 18:46:02 -04:00
}
2023-12-21 12:10:54 -05:00
String _$fetchActiveAccountInfoHash() =>
r'85276ff85b0e82c8d3c6313250954f5b578697d1';
2023-08-02 21:09:28 -04:00
/// Get the active account info
///
2023-12-21 12:10:54 -05:00
/// Copied from [fetchActiveAccountInfo].
@ProviderFor(fetchActiveAccountInfo)
final fetchActiveAccountInfoProvider =
2023-08-02 21:09:28 -04:00
AutoDisposeFutureProvider<ActiveAccountInfo?>.internal(
2023-12-21 12:10:54 -05:00
fetchActiveAccountInfo,
name: r'fetchActiveAccountInfoProvider',
2023-08-02 21:09:28 -04:00
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
? null
2023-12-21 12:10:54 -05:00
: _$fetchActiveAccountInfoHash,
2023-08-02 21:09:28 -04:00
dependencies: null,
allTransitiveDependencies: null,
);
2023-12-21 12:10:54 -05:00
typedef FetchActiveAccountInfoRef
2023-08-02 21:09:28 -04:00
= AutoDisposeFutureProviderRef<ActiveAccountInfo?>;
2023-09-26 18:46:02 -04:00
// ignore_for_file: type=lint
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member