relatica/lib/riverpod_controllers/notification_services.g.dart

645 wiersze
18 KiB
Dart
Czysty Zwykły widok Historia

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'notification_services.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
String _$userNotificationsHash() => r'1ee8dea8ca12c3cdec3c274103422bdd89ba9922';
/// 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));
}
}
/// See also [userNotifications].
@ProviderFor(userNotifications)
const userNotificationsProvider = UserNotificationsFamily();
/// See also [userNotifications].
class UserNotificationsFamily extends Family<List<UserNotification>> {
/// See also [userNotifications].
const UserNotificationsFamily();
/// See also [userNotifications].
UserNotificationsProvider call(
Profile profile,
NotificationType type,
bool isRead,
) {
return UserNotificationsProvider(
profile,
type,
isRead,
);
}
@override
UserNotificationsProvider getProviderOverride(
covariant UserNotificationsProvider provider,
) {
return call(
provider.profile,
provider.type,
provider.isRead,
);
}
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
String? get name => r'userNotificationsProvider';
}
/// See also [userNotifications].
class UserNotificationsProvider
extends AutoDisposeProvider<List<UserNotification>> {
/// See also [userNotifications].
UserNotificationsProvider(
Profile profile,
NotificationType type,
bool isRead,
) : this._internal(
(ref) => userNotifications(
ref as UserNotificationsRef,
profile,
type,
isRead,
),
from: userNotificationsProvider,
name: r'userNotificationsProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$userNotificationsHash,
dependencies: UserNotificationsFamily._dependencies,
allTransitiveDependencies:
UserNotificationsFamily._allTransitiveDependencies,
profile: profile,
type: type,
isRead: isRead,
);
UserNotificationsProvider._internal(
super._createNotifier, {
required super.name,
required super.dependencies,
required super.allTransitiveDependencies,
required super.debugGetCreateSourceHash,
required super.from,
required this.profile,
required this.type,
required this.isRead,
}) : super.internal();
final Profile profile;
final NotificationType type;
final bool isRead;
@override
Override overrideWith(
List<UserNotification> Function(UserNotificationsRef provider) create,
) {
return ProviderOverride(
origin: this,
override: UserNotificationsProvider._internal(
(ref) => create(ref as UserNotificationsRef),
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
type: type,
isRead: isRead,
),
);
}
@override
AutoDisposeProviderElement<List<UserNotification>> createElement() {
return _UserNotificationsProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is UserNotificationsProvider &&
other.profile == profile &&
other.type == type &&
other.isRead == isRead;
}
@override
int get hashCode {
var hash = _SystemHash.combine(0, runtimeType.hashCode);
hash = _SystemHash.combine(hash, profile.hashCode);
hash = _SystemHash.combine(hash, type.hashCode);
hash = _SystemHash.combine(hash, isRead.hashCode);
return _SystemHash.finish(hash);
}
}
@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
mixin UserNotificationsRef on AutoDisposeProviderRef<List<UserNotification>> {
/// The parameter `profile` of this provider.
Profile get profile;
/// The parameter `type` of this provider.
NotificationType get type;
/// The parameter `isRead` of this provider.
bool get isRead;
}
class _UserNotificationsProviderElement
extends AutoDisposeProviderElement<List<UserNotification>>
with UserNotificationsRef {
_UserNotificationsProviderElement(super.provider);
@override
Profile get profile => (origin as UserNotificationsProvider).profile;
@override
NotificationType get type => (origin as UserNotificationsProvider).type;
@override
bool get isRead => (origin as UserNotificationsProvider).isRead;
}
String _$hasNotificationsHash() => r'19b30cde983188d03c0a925cba4cd9a7aa2895be';
/// See also [hasNotifications].
@ProviderFor(hasNotifications)
const hasNotificationsProvider = HasNotificationsFamily();
/// See also [hasNotifications].
class HasNotificationsFamily extends Family<bool> {
/// See also [hasNotifications].
const HasNotificationsFamily();
/// See also [hasNotifications].
HasNotificationsProvider call(
Profile profile,
) {
return HasNotificationsProvider(
profile,
);
}
@override
HasNotificationsProvider getProviderOverride(
covariant HasNotificationsProvider provider,
) {
return call(
provider.profile,
);
}
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
String? get name => r'hasNotificationsProvider';
}
/// See also [hasNotifications].
class HasNotificationsProvider extends AutoDisposeProvider<bool> {
/// See also [hasNotifications].
HasNotificationsProvider(
Profile profile,
) : this._internal(
(ref) => hasNotifications(
ref as HasNotificationsRef,
profile,
),
from: hasNotificationsProvider,
name: r'hasNotificationsProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$hasNotificationsHash,
dependencies: HasNotificationsFamily._dependencies,
allTransitiveDependencies:
HasNotificationsFamily._allTransitiveDependencies,
profile: profile,
);
HasNotificationsProvider._internal(
super._createNotifier, {
required super.name,
required super.dependencies,
required super.allTransitiveDependencies,
required super.debugGetCreateSourceHash,
required super.from,
required this.profile,
}) : super.internal();
final Profile profile;
@override
Override overrideWith(
bool Function(HasNotificationsRef provider) create,
) {
return ProviderOverride(
origin: this,
override: HasNotificationsProvider._internal(
(ref) => create(ref as HasNotificationsRef),
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
),
);
}
@override
AutoDisposeProviderElement<bool> createElement() {
return _HasNotificationsProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is HasNotificationsProvider && other.profile == profile;
}
@override
int get hashCode {
var hash = _SystemHash.combine(0, runtimeType.hashCode);
hash = _SystemHash.combine(hash, profile.hashCode);
return _SystemHash.finish(hash);
}
}
@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
mixin HasNotificationsRef on AutoDisposeProviderRef<bool> {
/// The parameter `profile` of this provider.
Profile get profile;
}
class _HasNotificationsProviderElement extends AutoDisposeProviderElement<bool>
with HasNotificationsRef {
_HasNotificationsProviderElement(super.provider);
@override
Profile get profile => (origin as HasNotificationsProvider).profile;
}
String _$notificationsManager2Hash() =>
r'107d2e6a65815060148ee000d74bceea39cb76a9';
abstract class _$NotificationsManager2
extends BuildlessNotifier<List<UserNotification>> {
late final Profile profile;
late final NotificationType type;
List<UserNotification> build(
Profile profile,
NotificationType type,
);
}
/// See also [NotificationsManager2].
@ProviderFor(NotificationsManager2)
const notificationsManager2Provider = NotificationsManager2Family();
/// See also [NotificationsManager2].
class NotificationsManager2Family extends Family<List<UserNotification>> {
/// See also [NotificationsManager2].
const NotificationsManager2Family();
/// See also [NotificationsManager2].
NotificationsManager2Provider call(
Profile profile,
NotificationType type,
) {
return NotificationsManager2Provider(
profile,
type,
);
}
@override
NotificationsManager2Provider getProviderOverride(
covariant NotificationsManager2Provider provider,
) {
return call(
provider.profile,
provider.type,
);
}
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
String? get name => r'notificationsManager2Provider';
}
/// See also [NotificationsManager2].
class NotificationsManager2Provider extends NotifierProviderImpl<
NotificationsManager2, List<UserNotification>> {
/// See also [NotificationsManager2].
NotificationsManager2Provider(
Profile profile,
NotificationType type,
) : this._internal(
() => NotificationsManager2()
..profile = profile
..type = type,
from: notificationsManager2Provider,
name: r'notificationsManager2Provider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$notificationsManager2Hash,
dependencies: NotificationsManager2Family._dependencies,
allTransitiveDependencies:
NotificationsManager2Family._allTransitiveDependencies,
profile: profile,
type: type,
);
NotificationsManager2Provider._internal(
super._createNotifier, {
required super.name,
required super.dependencies,
required super.allTransitiveDependencies,
required super.debugGetCreateSourceHash,
required super.from,
required this.profile,
required this.type,
}) : super.internal();
final Profile profile;
final NotificationType type;
@override
List<UserNotification> runNotifierBuild(
covariant NotificationsManager2 notifier,
) {
return notifier.build(
profile,
type,
);
}
@override
Override overrideWith(NotificationsManager2 Function() create) {
return ProviderOverride(
origin: this,
override: NotificationsManager2Provider._internal(
() => create()
..profile = profile
..type = type,
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
type: type,
),
);
}
@override
NotifierProviderElement<NotificationsManager2, List<UserNotification>>
createElement() {
return _NotificationsManager2ProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is NotificationsManager2Provider &&
other.profile == profile &&
other.type == type;
}
@override
int get hashCode {
var hash = _SystemHash.combine(0, runtimeType.hashCode);
hash = _SystemHash.combine(hash, profile.hashCode);
hash = _SystemHash.combine(hash, type.hashCode);
return _SystemHash.finish(hash);
}
}
@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
mixin NotificationsManager2Ref on NotifierProviderRef<List<UserNotification>> {
/// The parameter `profile` of this provider.
Profile get profile;
/// The parameter `type` of this provider.
NotificationType get type;
}
class _NotificationsManager2ProviderElement extends NotifierProviderElement<
NotificationsManager2,
List<UserNotification>> with NotificationsManager2Ref {
_NotificationsManager2ProviderElement(super.provider);
@override
Profile get profile => (origin as NotificationsManager2Provider).profile;
@override
NotificationType get type => (origin as NotificationsManager2Provider).type;
}
String _$notificationsManagerHash() =>
r'030cc42fb7b5f7edaaa8eeacf154dfc9887e39b6';
abstract class _$NotificationsManager
extends BuildlessAsyncNotifier<Result<List<UserNotification>, ExecError>> {
late final Profile profile;
FutureOr<Result<List<UserNotification>, ExecError>> build(
Profile profile,
);
}
/// See also [NotificationsManager].
@ProviderFor(NotificationsManager)
const notificationsManagerProvider = NotificationsManagerFamily();
/// See also [NotificationsManager].
class NotificationsManagerFamily
extends Family<AsyncValue<Result<List<UserNotification>, ExecError>>> {
/// See also [NotificationsManager].
const NotificationsManagerFamily();
/// See also [NotificationsManager].
NotificationsManagerProvider call(
Profile profile,
) {
return NotificationsManagerProvider(
profile,
);
}
@override
NotificationsManagerProvider getProviderOverride(
covariant NotificationsManagerProvider provider,
) {
return call(
provider.profile,
);
}
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
String? get name => r'notificationsManagerProvider';
}
/// See also [NotificationsManager].
class NotificationsManagerProvider extends AsyncNotifierProviderImpl<
NotificationsManager, Result<List<UserNotification>, ExecError>> {
/// See also [NotificationsManager].
NotificationsManagerProvider(
Profile profile,
) : this._internal(
() => NotificationsManager()..profile = profile,
from: notificationsManagerProvider,
name: r'notificationsManagerProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$notificationsManagerHash,
dependencies: NotificationsManagerFamily._dependencies,
allTransitiveDependencies:
NotificationsManagerFamily._allTransitiveDependencies,
profile: profile,
);
NotificationsManagerProvider._internal(
super._createNotifier, {
required super.name,
required super.dependencies,
required super.allTransitiveDependencies,
required super.debugGetCreateSourceHash,
required super.from,
required this.profile,
}) : super.internal();
final Profile profile;
@override
FutureOr<Result<List<UserNotification>, ExecError>> runNotifierBuild(
covariant NotificationsManager notifier,
) {
return notifier.build(
profile,
);
}
@override
Override overrideWith(NotificationsManager Function() create) {
return ProviderOverride(
origin: this,
override: NotificationsManagerProvider._internal(
() => create()..profile = profile,
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
),
);
}
@override
AsyncNotifierProviderElement<NotificationsManager,
Result<List<UserNotification>, ExecError>> createElement() {
return _NotificationsManagerProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is NotificationsManagerProvider && other.profile == profile;
}
@override
int get hashCode {
var hash = _SystemHash.combine(0, runtimeType.hashCode);
hash = _SystemHash.combine(hash, profile.hashCode);
return _SystemHash.finish(hash);
}
}
@Deprecated('Will be removed in 3.0. Use Ref instead')
// ignore: unused_element
mixin NotificationsManagerRef
on AsyncNotifierProviderRef<Result<List<UserNotification>, ExecError>> {
/// The parameter `profile` of this provider.
Profile get profile;
}
class _NotificationsManagerProviderElement extends AsyncNotifierProviderElement<
NotificationsManager,
Result<List<UserNotification>, ExecError>> with NotificationsManagerRef {
_NotificationsManagerProviderElement(super.provider);
@override
Profile get profile => (origin as NotificationsManagerProvider).profile;
}
// 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