Files
manager/lib/core/connections/connection_providers.g.dart
T

233 lines
6.8 KiB
Dart
Raw Normal View History

2026-07-27 14:42:23 +02:00
// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'connection_providers.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint, type=warning
@ProviderFor(connectionStorage)
const connectionStorageProvider = ConnectionStorageProvider._();
final class ConnectionStorageProvider
extends
$FunctionalProvider<
ConnectionStorage,
ConnectionStorage,
ConnectionStorage
>
with $Provider<ConnectionStorage> {
const ConnectionStorageProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'connectionStorageProvider',
isAutoDispose: false,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$connectionStorageHash();
@$internal
@override
$ProviderElement<ConnectionStorage> $createElement(
$ProviderPointer pointer,
) => $ProviderElement(pointer);
@override
ConnectionStorage create(Ref ref) {
return connectionStorage(ref);
}
/// {@macro riverpod.override_with_value}
Override overrideWithValue(ConnectionStorage value) {
return $ProviderOverride(
origin: this,
providerOverride: $SyncValueProvider<ConnectionStorage>(value),
);
}
}
String _$connectionStorageHash() => r'0faf909e3978260785f2f8ce4bc41f101e27ad66';
/// The full list of saved connections. Mutations persist immediately.
@ProviderFor(SavedConnections)
const savedConnectionsProvider = SavedConnectionsProvider._();
/// The full list of saved connections. Mutations persist immediately.
final class SavedConnectionsProvider
extends $NotifierProvider<SavedConnections, List<Connection>> {
/// The full list of saved connections. Mutations persist immediately.
const SavedConnectionsProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'savedConnectionsProvider',
isAutoDispose: false,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$savedConnectionsHash();
@$internal
@override
SavedConnections create() => SavedConnections();
/// {@macro riverpod.override_with_value}
Override overrideWithValue(List<Connection> value) {
return $ProviderOverride(
origin: this,
providerOverride: $SyncValueProvider<List<Connection>>(value),
);
}
}
String _$savedConnectionsHash() => r'2595280b9ef1f5835ecce70b791a901a51aaf8e8';
/// The full list of saved connections. Mutations persist immediately.
abstract class _$SavedConnections extends $Notifier<List<Connection>> {
List<Connection> build();
@$mustCallSuper
@override
void runBuild() {
final created = build();
final ref = this.ref as $Ref<List<Connection>, List<Connection>>;
final element =
ref.element
as $ClassProviderElement<
AnyNotifier<List<Connection>, List<Connection>>,
List<Connection>,
Object?,
Object?
>;
element.handleValue(ref, created);
}
}
/// The id of the currently active connection, or null if none is selected
/// (e.g. first launch with nothing configured yet).
@ProviderFor(ActiveConnectionId)
const activeConnectionIdProvider = ActiveConnectionIdProvider._();
/// The id of the currently active connection, or null if none is selected
/// (e.g. first launch with nothing configured yet).
final class ActiveConnectionIdProvider
extends $NotifierProvider<ActiveConnectionId, String?> {
/// The id of the currently active connection, or null if none is selected
/// (e.g. first launch with nothing configured yet).
const ActiveConnectionIdProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'activeConnectionIdProvider',
isAutoDispose: false,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$activeConnectionIdHash();
@$internal
@override
ActiveConnectionId create() => ActiveConnectionId();
/// {@macro riverpod.override_with_value}
Override overrideWithValue(String? value) {
return $ProviderOverride(
origin: this,
providerOverride: $SyncValueProvider<String?>(value),
);
}
}
String _$activeConnectionIdHash() =>
r'ac8b7d48bc04e6f9245b23c83a15e11a539e1fc8';
/// The id of the currently active connection, or null if none is selected
/// (e.g. first launch with nothing configured yet).
abstract class _$ActiveConnectionId extends $Notifier<String?> {
String? build();
@$mustCallSuper
@override
void runBuild() {
final created = build();
final ref = this.ref as $Ref<String?, String?>;
final element =
ref.element
as $ClassProviderElement<
AnyNotifier<String?, String?>,
String?,
Object?,
Object?
>;
element.handleValue(ref, created);
}
}
/// The currently active [Connection], or null if none is configured.
/// Everything in `core/network` derives from this — switching it rebuilds
/// the API client and, transitively, every provider that watches it.
@ProviderFor(activeConnection)
const activeConnectionProvider = ActiveConnectionProvider._();
/// The currently active [Connection], or null if none is configured.
/// Everything in `core/network` derives from this — switching it rebuilds
/// the API client and, transitively, every provider that watches it.
final class ActiveConnectionProvider
extends $FunctionalProvider<Connection?, Connection?, Connection?>
with $Provider<Connection?> {
/// The currently active [Connection], or null if none is configured.
/// Everything in `core/network` derives from this — switching it rebuilds
/// the API client and, transitively, every provider that watches it.
const ActiveConnectionProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'activeConnectionProvider',
isAutoDispose: true,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$activeConnectionHash();
@$internal
@override
$ProviderElement<Connection?> $createElement($ProviderPointer pointer) =>
$ProviderElement(pointer);
@override
Connection? create(Ref ref) {
return activeConnection(ref);
}
/// {@macro riverpod.override_with_value}
Override overrideWithValue(Connection? value) {
return $ProviderOverride(
origin: this,
providerOverride: $SyncValueProvider<Connection?>(value),
);
}
}
String _$activeConnectionHash() => r'544cf6f795b35636cbfc497e6379a84b1e8f5b88';