runable
This commit is contained in:
@@ -0,0 +1,60 @@
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
|
||||
part of 'settings_provider.dart';
|
||||
|
||||
// **************************************************************************
|
||||
// RiverpodGenerator
|
||||
// **************************************************************************
|
||||
|
||||
// GENERATED CODE - DO NOT MODIFY BY HAND
|
||||
// ignore_for_file: type=lint, type=warning
|
||||
/// Provider for app settings
|
||||
|
||||
@ProviderFor(Settings)
|
||||
const settingsProvider = SettingsProvider._();
|
||||
|
||||
/// Provider for app settings
|
||||
final class SettingsProvider
|
||||
extends $AsyncNotifierProvider<Settings, AppSettings> {
|
||||
/// Provider for app settings
|
||||
const SettingsProvider._()
|
||||
: super(
|
||||
from: null,
|
||||
argument: null,
|
||||
retry: null,
|
||||
name: r'settingsProvider',
|
||||
isAutoDispose: true,
|
||||
dependencies: null,
|
||||
$allTransitiveDependencies: null,
|
||||
);
|
||||
|
||||
@override
|
||||
String debugGetCreateSourceHash() => _$settingsHash();
|
||||
|
||||
@$internal
|
||||
@override
|
||||
Settings create() => Settings();
|
||||
}
|
||||
|
||||
String _$settingsHash() => r'17065d5a6818ea746a031f33ff7f4fb9ab111075';
|
||||
|
||||
/// Provider for app settings
|
||||
|
||||
abstract class _$Settings extends $AsyncNotifier<AppSettings> {
|
||||
FutureOr<AppSettings> build();
|
||||
@$mustCallSuper
|
||||
@override
|
||||
void runBuild() {
|
||||
final created = build();
|
||||
final ref = this.ref as $Ref<AsyncValue<AppSettings>, AppSettings>;
|
||||
final element =
|
||||
ref.element
|
||||
as $ClassProviderElement<
|
||||
AnyNotifier<AsyncValue<AppSettings>, AppSettings>,
|
||||
AsyncValue<AppSettings>,
|
||||
Object?,
|
||||
Object?
|
||||
>;
|
||||
element.handleValue(ref, created);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user