2024-11-27 02:44:28 +00:00
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
|
|
|
|
part of 'notification_services.dart';
|
|
|
|
|
|
|
|
// **************************************************************************
|
|
|
|
// RiverpodGenerator
|
|
|
|
// **************************************************************************
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
String _$userNotificationsByTypeHash() =>
|
2025-06-11 19:18:51 +00:00
|
|
|
r'fe1e04eab091d6e92de866a9888c389024ca3da3';
|
2024-11-27 02:44:28 +00: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));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [userNotificationsByType].
|
|
|
|
@ProviderFor(userNotificationsByType)
|
|
|
|
const userNotificationsByTypeProvider = UserNotificationsByTypeFamily();
|
2025-06-10 21:31:28 +00:00
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [userNotificationsByType].
|
|
|
|
class UserNotificationsByTypeFamily extends Family<List<UserNotification>> {
|
|
|
|
/// See also [userNotificationsByType].
|
|
|
|
const UserNotificationsByTypeFamily();
|
2025-06-10 21:31:28 +00:00
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [userNotificationsByType].
|
|
|
|
UserNotificationsByTypeProvider call(
|
2025-06-10 21:31:28 +00:00
|
|
|
Profile profile,
|
|
|
|
NotificationType type,
|
|
|
|
bool isRead,
|
|
|
|
) {
|
2025-06-11 18:22:54 +00:00
|
|
|
return UserNotificationsByTypeProvider(
|
2025-06-10 21:31:28 +00:00
|
|
|
profile,
|
|
|
|
type,
|
|
|
|
isRead,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
UserNotificationsByTypeProvider getProviderOverride(
|
|
|
|
covariant UserNotificationsByTypeProvider provider,
|
2025-06-10 21:31:28 +00:00
|
|
|
) {
|
|
|
|
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
|
2025-06-11 18:22:54 +00:00
|
|
|
String? get name => r'userNotificationsByTypeProvider';
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [userNotificationsByType].
|
|
|
|
class UserNotificationsByTypeProvider
|
2025-06-10 21:31:28 +00:00
|
|
|
extends AutoDisposeProvider<List<UserNotification>> {
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [userNotificationsByType].
|
|
|
|
UserNotificationsByTypeProvider(
|
2025-06-10 21:31:28 +00:00
|
|
|
Profile profile,
|
|
|
|
NotificationType type,
|
|
|
|
bool isRead,
|
|
|
|
) : this._internal(
|
2025-06-11 18:22:54 +00:00
|
|
|
(ref) => userNotificationsByType(
|
|
|
|
ref as UserNotificationsByTypeRef,
|
2025-06-10 21:31:28 +00:00
|
|
|
profile,
|
|
|
|
type,
|
|
|
|
isRead,
|
|
|
|
),
|
2025-06-11 18:22:54 +00:00
|
|
|
from: userNotificationsByTypeProvider,
|
|
|
|
name: r'userNotificationsByTypeProvider',
|
2025-06-10 21:31:28 +00:00
|
|
|
debugGetCreateSourceHash:
|
|
|
|
const bool.fromEnvironment('dart.vm.product')
|
|
|
|
? null
|
2025-06-11 18:22:54 +00:00
|
|
|
: _$userNotificationsByTypeHash,
|
|
|
|
dependencies: UserNotificationsByTypeFamily._dependencies,
|
2025-06-10 21:31:28 +00:00
|
|
|
allTransitiveDependencies:
|
2025-06-11 18:22:54 +00:00
|
|
|
UserNotificationsByTypeFamily._allTransitiveDependencies,
|
2025-06-10 21:31:28 +00:00
|
|
|
profile: profile,
|
|
|
|
type: type,
|
|
|
|
isRead: isRead,
|
|
|
|
);
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
UserNotificationsByTypeProvider._internal(
|
2025-06-10 21:31:28 +00:00
|
|
|
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(
|
2025-06-11 18:22:54 +00:00
|
|
|
List<UserNotification> Function(UserNotificationsByTypeRef provider) create,
|
2025-06-10 21:31:28 +00:00
|
|
|
) {
|
|
|
|
return ProviderOverride(
|
|
|
|
origin: this,
|
2025-06-11 18:22:54 +00:00
|
|
|
override: UserNotificationsByTypeProvider._internal(
|
|
|
|
(ref) => create(ref as UserNotificationsByTypeRef),
|
2025-06-10 21:31:28 +00:00
|
|
|
from: from,
|
|
|
|
name: null,
|
|
|
|
dependencies: null,
|
|
|
|
allTransitiveDependencies: null,
|
|
|
|
debugGetCreateSourceHash: null,
|
|
|
|
profile: profile,
|
|
|
|
type: type,
|
|
|
|
isRead: isRead,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
AutoDisposeProviderElement<List<UserNotification>> createElement() {
|
2025-06-11 18:22:54 +00:00
|
|
|
return _UserNotificationsByTypeProviderElement(this);
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2025-06-11 18:22:54 +00:00
|
|
|
return other is UserNotificationsByTypeProvider &&
|
2025-06-10 21:31:28 +00:00
|
|
|
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
|
2025-06-11 18:22:54 +00:00
|
|
|
mixin UserNotificationsByTypeRef
|
|
|
|
on AutoDisposeProviderRef<List<UserNotification>> {
|
2025-06-10 21:31:28 +00:00
|
|
|
/// 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;
|
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
class _UserNotificationsByTypeProviderElement
|
2025-06-10 21:31:28 +00:00
|
|
|
extends AutoDisposeProviderElement<List<UserNotification>>
|
2025-06-11 18:22:54 +00:00
|
|
|
with UserNotificationsByTypeRef {
|
|
|
|
_UserNotificationsByTypeProviderElement(super.provider);
|
2025-06-10 21:31:28 +00:00
|
|
|
|
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
Profile get profile => (origin as UserNotificationsByTypeProvider).profile;
|
2025-06-10 21:31:28 +00:00
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
NotificationType get type => (origin as UserNotificationsByTypeProvider).type;
|
2025-06-10 21:31:28 +00:00
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
bool get isRead => (origin as UserNotificationsByTypeProvider).isRead;
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
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';
|
2025-06-10 21:31:28 +00:00
|
|
|
|
|
|
|
/// 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,
|
2025-06-11 18:22:54 +00:00
|
|
|
bool isRead,
|
2025-06-10 21:31:28 +00:00
|
|
|
) {
|
|
|
|
return HasNotificationsProvider(
|
|
|
|
profile,
|
2025-06-11 18:22:54 +00:00
|
|
|
isRead,
|
2025-06-10 21:31:28 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
HasNotificationsProvider getProviderOverride(
|
|
|
|
covariant HasNotificationsProvider provider,
|
|
|
|
) {
|
|
|
|
return call(
|
|
|
|
provider.profile,
|
2025-06-11 18:22:54 +00:00
|
|
|
provider.isRead,
|
2025-06-10 21:31:28 +00:00
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
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,
|
2025-06-11 18:22:54 +00:00
|
|
|
bool isRead,
|
2025-06-10 21:31:28 +00:00
|
|
|
) : this._internal(
|
|
|
|
(ref) => hasNotifications(
|
|
|
|
ref as HasNotificationsRef,
|
|
|
|
profile,
|
2025-06-11 18:22:54 +00:00
|
|
|
isRead,
|
2025-06-10 21:31:28 +00:00
|
|
|
),
|
|
|
|
from: hasNotificationsProvider,
|
|
|
|
name: r'hasNotificationsProvider',
|
|
|
|
debugGetCreateSourceHash:
|
|
|
|
const bool.fromEnvironment('dart.vm.product')
|
|
|
|
? null
|
|
|
|
: _$hasNotificationsHash,
|
|
|
|
dependencies: HasNotificationsFamily._dependencies,
|
|
|
|
allTransitiveDependencies:
|
|
|
|
HasNotificationsFamily._allTransitiveDependencies,
|
|
|
|
profile: profile,
|
2025-06-11 18:22:54 +00:00
|
|
|
isRead: isRead,
|
2025-06-10 21:31:28 +00:00
|
|
|
);
|
|
|
|
|
|
|
|
HasNotificationsProvider._internal(
|
|
|
|
super._createNotifier, {
|
|
|
|
required super.name,
|
|
|
|
required super.dependencies,
|
|
|
|
required super.allTransitiveDependencies,
|
|
|
|
required super.debugGetCreateSourceHash,
|
|
|
|
required super.from,
|
|
|
|
required this.profile,
|
2025-06-11 18:22:54 +00:00
|
|
|
required this.isRead,
|
2025-06-10 21:31:28 +00:00
|
|
|
}) : super.internal();
|
|
|
|
|
|
|
|
final Profile profile;
|
2025-06-11 18:22:54 +00:00
|
|
|
final bool isRead;
|
2025-06-10 21:31:28 +00:00
|
|
|
|
|
|
|
@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,
|
2025-06-11 18:22:54 +00:00
|
|
|
isRead: isRead,
|
2025-06-10 21:31:28 +00:00
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
AutoDisposeProviderElement<bool> createElement() {
|
|
|
|
return _HasNotificationsProviderElement(this);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2025-06-11 18:22:54 +00:00
|
|
|
return other is HasNotificationsProvider &&
|
|
|
|
other.profile == profile &&
|
|
|
|
other.isRead == isRead;
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
int get hashCode {
|
|
|
|
var hash = _SystemHash.combine(0, runtimeType.hashCode);
|
|
|
|
hash = _SystemHash.combine(hash, profile.hashCode);
|
2025-06-11 18:22:54 +00:00
|
|
|
hash = _SystemHash.combine(hash, isRead.hashCode);
|
2025-06-10 21:31:28 +00:00
|
|
|
|
|
|
|
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;
|
2025-06-11 18:22:54 +00:00
|
|
|
|
|
|
|
/// The parameter `isRead` of this provider.
|
|
|
|
bool get isRead;
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
class _HasNotificationsProviderElement extends AutoDisposeProviderElement<bool>
|
|
|
|
with HasNotificationsRef {
|
|
|
|
_HasNotificationsProviderElement(super.provider);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Profile get profile => (origin as HasNotificationsProvider).profile;
|
2025-06-11 18:22:54 +00:00
|
|
|
@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;
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
String _$notificationsStoreHash() =>
|
2025-06-20 02:51:11 +00:00
|
|
|
r'f0fd5f5bfdf129fe805d0d2cbb753fde83106cb6';
|
2025-06-10 21:31:28 +00:00
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
abstract class _$NotificationsStore
|
2025-06-10 21:31:28 +00:00
|
|
|
extends BuildlessNotifier<List<UserNotification>> {
|
|
|
|
late final Profile profile;
|
|
|
|
late final NotificationType type;
|
|
|
|
|
|
|
|
List<UserNotification> build(
|
|
|
|
Profile profile,
|
|
|
|
NotificationType type,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [_NotificationsStore].
|
|
|
|
@ProviderFor(_NotificationsStore)
|
|
|
|
const _notificationsStoreProvider = _NotificationsStoreFamily();
|
2025-06-10 21:31:28 +00:00
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [_NotificationsStore].
|
|
|
|
class _NotificationsStoreFamily extends Family<List<UserNotification>> {
|
|
|
|
/// See also [_NotificationsStore].
|
|
|
|
const _NotificationsStoreFamily();
|
2025-06-10 21:31:28 +00:00
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [_NotificationsStore].
|
|
|
|
_NotificationsStoreProvider call(
|
2025-06-10 21:31:28 +00:00
|
|
|
Profile profile,
|
|
|
|
NotificationType type,
|
|
|
|
) {
|
2025-06-11 18:22:54 +00:00
|
|
|
return _NotificationsStoreProvider(
|
2025-06-10 21:31:28 +00:00
|
|
|
profile,
|
|
|
|
type,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
_NotificationsStoreProvider getProviderOverride(
|
|
|
|
covariant _NotificationsStoreProvider provider,
|
2025-06-10 21:31:28 +00:00
|
|
|
) {
|
|
|
|
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
|
2025-06-11 18:22:54 +00:00
|
|
|
String? get name => r'_notificationsStoreProvider';
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
/// See also [_NotificationsStore].
|
|
|
|
class _NotificationsStoreProvider
|
|
|
|
extends NotifierProviderImpl<_NotificationsStore, List<UserNotification>> {
|
|
|
|
/// See also [_NotificationsStore].
|
|
|
|
_NotificationsStoreProvider(
|
2025-06-10 21:31:28 +00:00
|
|
|
Profile profile,
|
|
|
|
NotificationType type,
|
|
|
|
) : this._internal(
|
2025-06-11 18:22:54 +00:00
|
|
|
() => _NotificationsStore()
|
2025-06-10 21:31:28 +00:00
|
|
|
..profile = profile
|
|
|
|
..type = type,
|
2025-06-11 18:22:54 +00:00
|
|
|
from: _notificationsStoreProvider,
|
|
|
|
name: r'_notificationsStoreProvider',
|
2025-06-10 21:31:28 +00:00
|
|
|
debugGetCreateSourceHash:
|
|
|
|
const bool.fromEnvironment('dart.vm.product')
|
|
|
|
? null
|
2025-06-11 18:22:54 +00:00
|
|
|
: _$notificationsStoreHash,
|
|
|
|
dependencies: _NotificationsStoreFamily._dependencies,
|
2025-06-10 21:31:28 +00:00
|
|
|
allTransitiveDependencies:
|
2025-06-11 18:22:54 +00:00
|
|
|
_NotificationsStoreFamily._allTransitiveDependencies,
|
2025-06-10 21:31:28 +00:00
|
|
|
profile: profile,
|
|
|
|
type: type,
|
|
|
|
);
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
_NotificationsStoreProvider._internal(
|
2025-06-10 21:31:28 +00:00
|
|
|
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(
|
2025-06-11 18:22:54 +00:00
|
|
|
covariant _NotificationsStore notifier,
|
2025-06-10 21:31:28 +00:00
|
|
|
) {
|
|
|
|
return notifier.build(
|
|
|
|
profile,
|
|
|
|
type,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
Override overrideWith(_NotificationsStore Function() create) {
|
2025-06-10 21:31:28 +00:00
|
|
|
return ProviderOverride(
|
|
|
|
origin: this,
|
2025-06-11 18:22:54 +00:00
|
|
|
override: _NotificationsStoreProvider._internal(
|
2025-06-10 21:31:28 +00:00
|
|
|
() => create()
|
|
|
|
..profile = profile
|
|
|
|
..type = type,
|
|
|
|
from: from,
|
|
|
|
name: null,
|
|
|
|
dependencies: null,
|
|
|
|
allTransitiveDependencies: null,
|
|
|
|
debugGetCreateSourceHash: null,
|
|
|
|
profile: profile,
|
|
|
|
type: type,
|
|
|
|
),
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
NotifierProviderElement<_NotificationsStore, List<UserNotification>>
|
2025-06-10 21:31:28 +00:00
|
|
|
createElement() {
|
2025-06-11 18:22:54 +00:00
|
|
|
return _NotificationsStoreProviderElement(this);
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
@override
|
|
|
|
bool operator ==(Object other) {
|
2025-06-11 18:22:54 +00:00
|
|
|
return other is _NotificationsStoreProvider &&
|
2025-06-10 21:31:28 +00:00
|
|
|
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
|
2025-06-11 18:22:54 +00:00
|
|
|
mixin _NotificationsStoreRef on NotifierProviderRef<List<UserNotification>> {
|
2025-06-10 21:31:28 +00:00
|
|
|
/// The parameter `profile` of this provider.
|
|
|
|
Profile get profile;
|
|
|
|
|
|
|
|
/// The parameter `type` of this provider.
|
|
|
|
NotificationType get type;
|
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
class _NotificationsStoreProviderElement
|
|
|
|
extends NotifierProviderElement<_NotificationsStore, List<UserNotification>>
|
|
|
|
with _NotificationsStoreRef {
|
|
|
|
_NotificationsStoreProviderElement(super.provider);
|
2025-06-10 21:31:28 +00:00
|
|
|
|
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
Profile get profile => (origin as _NotificationsStoreProvider).profile;
|
2025-06-10 21:31:28 +00:00
|
|
|
@override
|
2025-06-11 18:22:54 +00:00
|
|
|
NotificationType get type => (origin as _NotificationsStoreProvider).type;
|
2025-06-10 21:31:28 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
String _$notificationsManagerHash() =>
|
2025-06-16 13:15:43 +00:00
|
|
|
r'e6946d8411c01f8e5d6dbdbbff612f552eea2c03';
|
2025-06-10 21:31:28 +00:00
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
abstract class _$NotificationsManager extends BuildlessAsyncNotifier<bool> {
|
2024-11-27 02:44:28 +00:00
|
|
|
late final Profile profile;
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
FutureOr<bool> build(
|
2024-11-27 02:44:28 +00:00
|
|
|
Profile profile,
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// See also [NotificationsManager].
|
|
|
|
@ProviderFor(NotificationsManager)
|
|
|
|
const notificationsManagerProvider = NotificationsManagerFamily();
|
|
|
|
|
|
|
|
/// See also [NotificationsManager].
|
2025-06-11 18:22:54 +00:00
|
|
|
class NotificationsManagerFamily extends Family<AsyncValue<bool>> {
|
2024-11-27 02:44:28 +00:00
|
|
|
/// 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].
|
2025-06-11 18:22:54 +00:00
|
|
|
class NotificationsManagerProvider
|
|
|
|
extends AsyncNotifierProviderImpl<NotificationsManager, bool> {
|
2024-11-27 02:44:28 +00:00
|
|
|
/// 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
|
2025-06-11 18:22:54 +00:00
|
|
|
FutureOr<bool> runNotifierBuild(
|
2024-11-27 02:44:28 +00:00
|
|
|
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
|
2025-06-11 18:22:54 +00:00
|
|
|
AsyncNotifierProviderElement<NotificationsManager, bool> createElement() {
|
2024-11-27 02:44:28 +00:00
|
|
|
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);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2024-12-01 21:41:07 +00:00
|
|
|
@Deprecated('Will be removed in 3.0. Use Ref instead')
|
|
|
|
// ignore: unused_element
|
2025-06-11 18:22:54 +00:00
|
|
|
mixin NotificationsManagerRef on AsyncNotifierProviderRef<bool> {
|
2024-11-27 02:44:28 +00:00
|
|
|
/// The parameter `profile` of this provider.
|
|
|
|
Profile get profile;
|
|
|
|
}
|
|
|
|
|
2025-06-11 18:22:54 +00:00
|
|
|
class _NotificationsManagerProviderElement
|
|
|
|
extends AsyncNotifierProviderElement<NotificationsManager, bool>
|
|
|
|
with NotificationsManagerRef {
|
2024-11-27 02:44:28 +00:00
|
|
|
_NotificationsManagerProviderElement(super.provider);
|
|
|
|
|
|
|
|
@override
|
|
|
|
Profile get profile => (origin as NotificationsManagerProvider).profile;
|
|
|
|
}
|
|
|
|
// ignore_for_file: type=lint
|
2024-12-01 21:41:07 +00:00
|
|
|
// 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
|