Files
manager/lib/features/dashboard/providers/dashboard_summary_provider.g.dart
2026-07-27 14:42:23 +02:00

76 lines
2.8 KiB
Dart

// GENERATED CODE - DO NOT MODIFY BY HAND
part of 'dashboard_summary_provider.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint, type=warning
/// Polled every 20s while the Dashboard is mounted — deliberately its own
/// notifier rather than watching `servicesListProvider`/`currentNodeProvider`
/// directly, so Dashboard auto-refreshes independent of whether the
/// Services screen (manual-refresh only) happens to be open too.
@ProviderFor(DashboardSummaryNotifier)
const dashboardSummaryProvider = DashboardSummaryNotifierProvider._();
/// Polled every 20s while the Dashboard is mounted — deliberately its own
/// notifier rather than watching `servicesListProvider`/`currentNodeProvider`
/// directly, so Dashboard auto-refreshes independent of whether the
/// Services screen (manual-refresh only) happens to be open too.
final class DashboardSummaryNotifierProvider
extends $AsyncNotifierProvider<DashboardSummaryNotifier, DashboardSummary> {
/// Polled every 20s while the Dashboard is mounted — deliberately its own
/// notifier rather than watching `servicesListProvider`/`currentNodeProvider`
/// directly, so Dashboard auto-refreshes independent of whether the
/// Services screen (manual-refresh only) happens to be open too.
const DashboardSummaryNotifierProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'dashboardSummaryProvider',
isAutoDispose: true,
dependencies: null,
$allTransitiveDependencies: null,
);
@override
String debugGetCreateSourceHash() => _$dashboardSummaryNotifierHash();
@$internal
@override
DashboardSummaryNotifier create() => DashboardSummaryNotifier();
}
String _$dashboardSummaryNotifierHash() =>
r'807d0df3c8b7ce9652ae56fdba542b108aa99456';
/// Polled every 20s while the Dashboard is mounted — deliberately its own
/// notifier rather than watching `servicesListProvider`/`currentNodeProvider`
/// directly, so Dashboard auto-refreshes independent of whether the
/// Services screen (manual-refresh only) happens to be open too.
abstract class _$DashboardSummaryNotifier
extends $AsyncNotifier<DashboardSummary> {
FutureOr<DashboardSummary> build();
@$mustCallSuper
@override
void runBuild() {
final created = build();
final ref =
this.ref as $Ref<AsyncValue<DashboardSummary>, DashboardSummary>;
final element =
ref.element
as $ClassProviderElement<
AnyNotifier<AsyncValue<DashboardSummary>, DashboardSummary>,
AsyncValue<DashboardSummary>,
Object?,
Object?
>;
element.handleValue(ref, created);
}
}