88 lines
2.6 KiB
Dart
88 lines
2.6 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'config.dart';
|
|
|
|
// **************************************************************************
|
|
// JsonSerializableGenerator
|
|
// **************************************************************************
|
|
|
|
_ThemeColors _$ThemeColorsFromJson(Map<String, dynamic> json) => _ThemeColors(
|
|
primary: (json['primary'] as num?)?.toInt(),
|
|
secondary: (json['secondary'] as num?)?.toInt(),
|
|
tertiary: (json['tertiary'] as num?)?.toInt(),
|
|
surface: (json['surface'] as num?)?.toInt(),
|
|
background: (json['background'] as num?)?.toInt(),
|
|
error: (json['error'] as num?)?.toInt(),
|
|
);
|
|
|
|
Map<String, dynamic> _$ThemeColorsToJson(_ThemeColors instance) =>
|
|
<String, dynamic>{
|
|
'primary': instance.primary,
|
|
'secondary': instance.secondary,
|
|
'tertiary': instance.tertiary,
|
|
'surface': instance.surface,
|
|
'background': instance.background,
|
|
'error': instance.error,
|
|
};
|
|
|
|
// **************************************************************************
|
|
// RiverpodGenerator
|
|
// **************************************************************************
|
|
|
|
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
// ignore_for_file: type=lint, type=warning
|
|
|
|
@ProviderFor(AppSettingsNotifier)
|
|
const appSettingsProvider = AppSettingsNotifierProvider._();
|
|
|
|
final class AppSettingsNotifierProvider
|
|
extends $NotifierProvider<AppSettingsNotifier, AppSettings> {
|
|
const AppSettingsNotifierProvider._()
|
|
: super(
|
|
from: null,
|
|
argument: null,
|
|
retry: null,
|
|
name: r'appSettingsProvider',
|
|
isAutoDispose: true,
|
|
dependencies: null,
|
|
$allTransitiveDependencies: null,
|
|
);
|
|
|
|
@override
|
|
String debugGetCreateSourceHash() => _$appSettingsNotifierHash();
|
|
|
|
@$internal
|
|
@override
|
|
AppSettingsNotifier create() => AppSettingsNotifier();
|
|
|
|
/// {@macro riverpod.override_with_value}
|
|
Override overrideWithValue(AppSettings value) {
|
|
return $ProviderOverride(
|
|
origin: this,
|
|
providerOverride: $SyncValueProvider<AppSettings>(value),
|
|
);
|
|
}
|
|
}
|
|
|
|
String _$appSettingsNotifierHash() =>
|
|
r'22b695f2023e3251db3296858acd701f7211d757';
|
|
|
|
abstract class _$AppSettingsNotifier extends $Notifier<AppSettings> {
|
|
AppSettings build();
|
|
@$mustCallSuper
|
|
@override
|
|
void runBuild() {
|
|
final created = build();
|
|
final ref = this.ref as $Ref<AppSettings, AppSettings>;
|
|
final element =
|
|
ref.element
|
|
as $ClassProviderElement<
|
|
AnyNotifier<AppSettings, AppSettings>,
|
|
AppSettings,
|
|
Object?,
|
|
Object?
|
|
>;
|
|
element.handleValue(ref, created);
|
|
}
|
|
}
|