relatica/lib/riverpod_controllers/notification_services.g.dart

1086 wiersze
29 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'notification_services.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
String _$userNotificationsByTypeHash() =>
r'fe1e04eab091d6e92de866a9888c389024ca3da3';
/// 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 [userNotificationsByType].
@ProviderFor(userNotificationsByType)
const userNotificationsByTypeProvider = UserNotificationsByTypeFamily();
/// See also [userNotificationsByType].
class UserNotificationsByTypeFamily extends Family<List<UserNotification>> {
/// See also [userNotificationsByType].
const UserNotificationsByTypeFamily();
/// See also [userNotificationsByType].
UserNotificationsByTypeProvider call(
Profile profile,
NotificationType type,
bool isRead,
) {
return UserNotificationsByTypeProvider(
profile,
type,
isRead,
);
}
@override
UserNotificationsByTypeProvider getProviderOverride(
covariant UserNotificationsByTypeProvider 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'userNotificationsByTypeProvider';
}
/// See also [userNotificationsByType].
class UserNotificationsByTypeProvider
extends AutoDisposeProvider<List<UserNotification>> {
/// See also [userNotificationsByType].
UserNotificationsByTypeProvider(
Profile profile,
NotificationType type,
bool isRead,
) : this._internal(
(ref) => userNotificationsByType(
ref as UserNotificationsByTypeRef,
profile,
type,
isRead,
),
from: userNotificationsByTypeProvider,
name: r'userNotificationsByTypeProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$userNotificationsByTypeHash,
dependencies: UserNotificationsByTypeFamily._dependencies,
allTransitiveDependencies:
UserNotificationsByTypeFamily._allTransitiveDependencies,
profile: profile,
type: type,
isRead: isRead,
);
UserNotificationsByTypeProvider._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(UserNotificationsByTypeRef provider) create,
) {
return ProviderOverride(
origin: this,
override: UserNotificationsByTypeProvider._internal(
(ref) => create(ref as UserNotificationsByTypeRef),
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
type: type,
isRead: isRead,
),
);
}
@override
AutoDisposeProviderElement<List<UserNotification>> createElement() {
return _UserNotificationsByTypeProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is UserNotificationsByTypeProvider &&
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 UserNotificationsByTypeRef
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 _UserNotificationsByTypeProviderElement
extends AutoDisposeProviderElement<List<UserNotification>>
with UserNotificationsByTypeRef {
_UserNotificationsByTypeProviderElement(super.provider);
@override
Profile get profile => (origin as UserNotificationsByTypeProvider).profile;
@override
NotificationType get type => (origin as UserNotificationsByTypeProvider).type;
@override
bool get isRead => (origin as UserNotificationsByTypeProvider).isRead;
}
String _$allNotificationsHash() => r'b353d331c19ca184cb47b221b88be98ebf7b365d';
/// See also [allNotifications].
@ProviderFor(allNotifications)
const allNotificationsProvider = AllNotificationsFamily();
/// See also [allNotifications].
class AllNotificationsFamily extends Family<List<UserNotification>> {
/// See also [allNotifications].
const AllNotificationsFamily();
/// See also [allNotifications].
AllNotificationsProvider call(
Profile profile,
bool isRead,
) {
return AllNotificationsProvider(
profile,
isRead,
);
}
@override
AllNotificationsProvider getProviderOverride(
covariant AllNotificationsProvider provider,
) {
return call(
provider.profile,
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'allNotificationsProvider';
}
/// See also [allNotifications].
class AllNotificationsProvider
extends AutoDisposeProvider<List<UserNotification>> {
/// See also [allNotifications].
AllNotificationsProvider(
Profile profile,
bool isRead,
) : this._internal(
(ref) => allNotifications(
ref as AllNotificationsRef,
profile,
isRead,
),
from: allNotificationsProvider,
name: r'allNotificationsProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$allNotificationsHash,
dependencies: AllNotificationsFamily._dependencies,
allTransitiveDependencies:
AllNotificationsFamily._allTransitiveDependencies,
profile: profile,
isRead: isRead,
);
AllNotificationsProvider._internal(
super._createNotifier, {
required super.name,
required super.dependencies,
required super.allTransitiveDependencies,
required super.debugGetCreateSourceHash,
required super.from,
required this.profile,
required this.isRead,
}) : super.internal();
final Profile profile;
final bool isRead;
@override
Override overrideWith(
List<UserNotification> Function(AllNotificationsRef provider) create,
) {
return ProviderOverride(
origin: this,
override: AllNotificationsProvider._internal(
(ref) => create(ref as AllNotificationsRef),
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
isRead: isRead,
),
);
}
@override
AutoDisposeProviderElement<List<UserNotification>> createElement() {
return _AllNotificationsProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is AllNotificationsProvider &&
other.profile == profile &&
other.isRead == isRead;
}
@override
int get hashCode {
var hash = _SystemHash.combine(0, runtimeType.hashCode);
hash = _SystemHash.combine(hash, profile.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 AllNotificationsRef on AutoDisposeProviderRef<List<UserNotification>> {
/// The parameter `profile` of this provider.
Profile get profile;
/// The parameter `isRead` of this provider.
bool get isRead;
}
class _AllNotificationsProviderElement
extends AutoDisposeProviderElement<List<UserNotification>>
with AllNotificationsRef {
_AllNotificationsProviderElement(super.provider);
@override
Profile get profile => (origin as AllNotificationsProvider).profile;
@override
bool get isRead => (origin as AllNotificationsProvider).isRead;
}
String _$hasNotificationsHash() => r'75fd7e12fef88aee9bfabb94ca30959a13b600f2';
/// 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,
bool isRead,
) {
return HasNotificationsProvider(
profile,
isRead,
);
}
@override
HasNotificationsProvider getProviderOverride(
covariant HasNotificationsProvider provider,
) {
return call(
provider.profile,
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'hasNotificationsProvider';
}
/// See also [hasNotifications].
class HasNotificationsProvider extends AutoDisposeProvider<bool> {
/// See also [hasNotifications].
HasNotificationsProvider(
Profile profile,
bool isRead,
) : this._internal(
(ref) => hasNotifications(
ref as HasNotificationsRef,
profile,
isRead,
),
from: hasNotificationsProvider,
name: r'hasNotificationsProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$hasNotificationsHash,
dependencies: HasNotificationsFamily._dependencies,
allTransitiveDependencies:
HasNotificationsFamily._allTransitiveDependencies,
profile: profile,
isRead: isRead,
);
HasNotificationsProvider._internal(
super._createNotifier, {
required super.name,
required super.dependencies,
required super.allTransitiveDependencies,
required super.debugGetCreateSourceHash,
required super.from,
required this.profile,
required this.isRead,
}) : super.internal();
final Profile profile;
final bool isRead;
@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,
isRead: isRead,
),
);
}
@override
AutoDisposeProviderElement<bool> createElement() {
return _HasNotificationsProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is HasNotificationsProvider &&
other.profile == profile &&
other.isRead == isRead;
}
@override
int get hashCode {
var hash = _SystemHash.combine(0, runtimeType.hashCode);
hash = _SystemHash.combine(hash, profile.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 HasNotificationsRef on AutoDisposeProviderRef<bool> {
/// The parameter `profile` of this provider.
Profile get profile;
/// The parameter `isRead` of this provider.
bool get isRead;
}
class _HasNotificationsProviderElement extends AutoDisposeProviderElement<bool>
with HasNotificationsRef {
_HasNotificationsProviderElement(super.provider);
@override
Profile get profile => (origin as HasNotificationsProvider).profile;
@override
bool get isRead => (origin as HasNotificationsProvider).isRead;
}
String _$hasAnyNotificationsHash() =>
r'02f8ed9e0dc829753d60c81ada195d909e223104';
/// See also [hasAnyNotifications].
@ProviderFor(hasAnyNotifications)
const hasAnyNotificationsProvider = HasAnyNotificationsFamily();
/// See also [hasAnyNotifications].
class HasAnyNotificationsFamily extends Family<bool> {
/// See also [hasAnyNotifications].
const HasAnyNotificationsFamily();
/// See also [hasAnyNotifications].
HasAnyNotificationsProvider call(
Profile profile,
) {
return HasAnyNotificationsProvider(
profile,
);
}
@override
HasAnyNotificationsProvider getProviderOverride(
covariant HasAnyNotificationsProvider 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'hasAnyNotificationsProvider';
}
/// See also [hasAnyNotifications].
class HasAnyNotificationsProvider extends AutoDisposeProvider<bool> {
/// See also [hasAnyNotifications].
HasAnyNotificationsProvider(
Profile profile,
) : this._internal(
(ref) => hasAnyNotifications(
ref as HasAnyNotificationsRef,
profile,
),
from: hasAnyNotificationsProvider,
name: r'hasAnyNotificationsProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$hasAnyNotificationsHash,
dependencies: HasAnyNotificationsFamily._dependencies,
allTransitiveDependencies:
HasAnyNotificationsFamily._allTransitiveDependencies,
profile: profile,
);
HasAnyNotificationsProvider._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(HasAnyNotificationsRef provider) create,
) {
return ProviderOverride(
origin: this,
override: HasAnyNotificationsProvider._internal(
(ref) => create(ref as HasAnyNotificationsRef),
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
),
);
}
@override
AutoDisposeProviderElement<bool> createElement() {
return _HasAnyNotificationsProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is HasAnyNotificationsProvider && 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 HasAnyNotificationsRef on AutoDisposeProviderRef<bool> {
/// The parameter `profile` of this provider.
Profile get profile;
}
class _HasAnyNotificationsProviderElement
extends AutoDisposeProviderElement<bool> with HasAnyNotificationsRef {
_HasAnyNotificationsProviderElement(super.provider);
@override
Profile get profile => (origin as HasAnyNotificationsProvider).profile;
}
String _$lowHighIdHash() => r'822098121e657a46ec5dc57ed5cee245354c0bd0';
/// See also [lowHighId].
@ProviderFor(lowHighId)
const lowHighIdProvider = LowHighIdFamily();
/// See also [lowHighId].
class LowHighIdFamily extends Family<(int low, int high)> {
/// See also [lowHighId].
const LowHighIdFamily();
/// See also [lowHighId].
LowHighIdProvider call(
Profile profile,
bool isRead,
) {
return LowHighIdProvider(
profile,
isRead,
);
}
@override
LowHighIdProvider getProviderOverride(
covariant LowHighIdProvider provider,
) {
return call(
provider.profile,
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'lowHighIdProvider';
}
/// See also [lowHighId].
class LowHighIdProvider extends AutoDisposeProvider<(int low, int high)> {
/// See also [lowHighId].
LowHighIdProvider(
Profile profile,
bool isRead,
) : this._internal(
(ref) => lowHighId(
ref as LowHighIdRef,
profile,
isRead,
),
from: lowHighIdProvider,
name: r'lowHighIdProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$lowHighIdHash,
dependencies: LowHighIdFamily._dependencies,
allTransitiveDependencies: LowHighIdFamily._allTransitiveDependencies,
profile: profile,
isRead: isRead,
);
LowHighIdProvider._internal(
super._createNotifier, {
required super.name,
required super.dependencies,
required super.allTransitiveDependencies,
required super.debugGetCreateSourceHash,
required super.from,
required this.profile,
required this.isRead,
}) : super.internal();
final Profile profile;
final bool isRead;
@override
Override overrideWith(
(int low, int high) Function(LowHighIdRef provider) create,
) {
return ProviderOverride(
origin: this,
override: LowHighIdProvider._internal(
(ref) => create(ref as LowHighIdRef),
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
isRead: isRead,
),
);
}
@override
AutoDisposeProviderElement<(int low, int high)> createElement() {
return _LowHighIdProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is LowHighIdProvider &&
other.profile == profile &&
other.isRead == isRead;
}
@override
int get hashCode {
var hash = _SystemHash.combine(0, runtimeType.hashCode);
hash = _SystemHash.combine(hash, profile.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 LowHighIdRef on AutoDisposeProviderRef<(int low, int high)> {
/// The parameter `profile` of this provider.
Profile get profile;
/// The parameter `isRead` of this provider.
bool get isRead;
}
class _LowHighIdProviderElement
extends AutoDisposeProviderElement<(int low, int high)> with LowHighIdRef {
_LowHighIdProviderElement(super.provider);
@override
Profile get profile => (origin as LowHighIdProvider).profile;
@override
bool get isRead => (origin as LowHighIdProvider).isRead;
}
String _$notificationsStoreHash() =>
2025-06-20 02:51:11 +00:00
r'f0fd5f5bfdf129fe805d0d2cbb753fde83106cb6';
abstract class _$NotificationsStore
extends BuildlessNotifier<List<UserNotification>> {
late final Profile profile;
late final NotificationType type;
List<UserNotification> build(
Profile profile,
NotificationType type,
);
}
/// See also [_NotificationsStore].
@ProviderFor(_NotificationsStore)
const _notificationsStoreProvider = _NotificationsStoreFamily();
/// See also [_NotificationsStore].
class _NotificationsStoreFamily extends Family<List<UserNotification>> {
/// See also [_NotificationsStore].
const _NotificationsStoreFamily();
/// See also [_NotificationsStore].
_NotificationsStoreProvider call(
Profile profile,
NotificationType type,
) {
return _NotificationsStoreProvider(
profile,
type,
);
}
@override
_NotificationsStoreProvider getProviderOverride(
covariant _NotificationsStoreProvider 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'_notificationsStoreProvider';
}
/// See also [_NotificationsStore].
class _NotificationsStoreProvider
extends NotifierProviderImpl<_NotificationsStore, List<UserNotification>> {
/// See also [_NotificationsStore].
_NotificationsStoreProvider(
Profile profile,
NotificationType type,
) : this._internal(
() => _NotificationsStore()
..profile = profile
..type = type,
from: _notificationsStoreProvider,
name: r'_notificationsStoreProvider',
debugGetCreateSourceHash:
const bool.fromEnvironment('dart.vm.product')
? null
: _$notificationsStoreHash,
dependencies: _NotificationsStoreFamily._dependencies,
allTransitiveDependencies:
_NotificationsStoreFamily._allTransitiveDependencies,
profile: profile,
type: type,
);
_NotificationsStoreProvider._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 _NotificationsStore notifier,
) {
return notifier.build(
profile,
type,
);
}
@override
Override overrideWith(_NotificationsStore Function() create) {
return ProviderOverride(
origin: this,
override: _NotificationsStoreProvider._internal(
() => create()
..profile = profile
..type = type,
from: from,
name: null,
dependencies: null,
allTransitiveDependencies: null,
debugGetCreateSourceHash: null,
profile: profile,
type: type,
),
);
}
@override
NotifierProviderElement<_NotificationsStore, List<UserNotification>>
createElement() {
return _NotificationsStoreProviderElement(this);
}
@override
bool operator ==(Object other) {
return other is _NotificationsStoreProvider &&
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 _NotificationsStoreRef on NotifierProviderRef<List<UserNotification>> {
/// The parameter `profile` of this provider.
Profile get profile;
/// The parameter `type` of this provider.
NotificationType get type;
}
class _NotificationsStoreProviderElement
extends NotifierProviderElement<_NotificationsStore, List<UserNotification>>
with _NotificationsStoreRef {
_NotificationsStoreProviderElement(super.provider);
@override
Profile get profile => (origin as _NotificationsStoreProvider).profile;
@override
NotificationType get type => (origin as _NotificationsStoreProvider).type;
}
String _$notificationsManagerHash() =>
r'e6946d8411c01f8e5d6dbdbbff612f552eea2c03';
abstract class _$NotificationsManager extends BuildlessAsyncNotifier<bool> {
late final Profile profile;
FutureOr<bool> build(
Profile profile,
);
}
/// See also [NotificationsManager].
@ProviderFor(NotificationsManager)
const notificationsManagerProvider = NotificationsManagerFamily();
/// See also [NotificationsManager].
class NotificationsManagerFamily extends Family<AsyncValue<bool>> {
/// 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, bool> {
/// 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<bool> 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, bool> 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<bool> {
/// The parameter `profile` of this provider.
Profile get profile;
}
class _NotificationsManagerProviderElement
extends AsyncNotifierProviderElement<NotificationsManager, bool>
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