mirror of
https://github.com/rrousselGit/riverpod.git
synced 2025-08-14 17:41:48 +08:00
67 lines
2.0 KiB
Dart
Generated
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';
|