Files
Remi Rousselet bd9521f214 Generate
2025-08-10 22:36:15 +02:00

67 lines
2.0 KiB
Dart
Generated

// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: non_constant_identifier_names, require_trailing_commas
part of 'common.dart';
// **************************************************************************
// RiverpodGenerator
// **************************************************************************
// GENERATED CODE - DO NOT MODIFY BY HAND
// ignore_for_file: type=lint, type=warning
/// A Provider that exposes the current theme.
///
/// This is unimplemented by default, and will be overridden inside [MaterialApp]
/// with the current theme obtained using a [BuildContext].
@ProviderFor(theme)
const themeProvider = ThemeProvider._();
/// A Provider that exposes the current theme.
///
/// This is unimplemented by default, and will be overridden inside [MaterialApp]
/// with the current theme obtained using a [BuildContext].
final class ThemeProvider
extends $FunctionalProvider<ThemeData, ThemeData, ThemeData>
with $Provider<ThemeData> {
/// A Provider that exposes the current theme.
///
/// This is unimplemented by default, and will be overridden inside [MaterialApp]
/// with the current theme obtained using a [BuildContext].
const ThemeProvider._()
: super(
from: null,
argument: null,
retry: null,
name: r'themeProvider',
isAutoDispose: true,
dependencies: const <ProviderOrFamily>[],
$allTransitiveDependencies: const <ProviderOrFamily>[],
);
@override
String debugGetCreateSourceHash() => _$themeHash();
@$internal
@override
$ProviderElement<ThemeData> $createElement($ProviderPointer pointer) =>
$ProviderElement(pointer);
@override
ThemeData create(Ref ref) {
return theme(ref);
}
/// {@macro riverpod.override_with_value}
Override overrideWithValue(ThemeData value) {
return $ProviderOverride(
origin: this,
providerOverride: $SyncValueProvider<ThemeData>(value),
);
}
}
String _$themeHash() => r'0fea6438c8bee8be98515c10e8e67c2e75c6af46';