Co-authored-by: Felipe M. <me@fmartingr.com> Co-committed-by: Felipe M. <me@fmartingr.com>
32 lines
1.2 KiB
Dart
32 lines
1.2 KiB
Dart
// GENERATED CODE - DO NOT MODIFY BY HAND
|
|
|
|
part of 'eink_mode_provider.dart';
|
|
|
|
// **************************************************************************
|
|
// RiverpodGenerator
|
|
// **************************************************************************
|
|
|
|
String _$einkModeNotifierHash() => r'4a5aa5c980270db066864fe75ebdd2c015725cd6';
|
|
|
|
/// Provider for e-ink mode state management.
|
|
///
|
|
/// On first launch (no stored preference), auto-detects whether the device is
|
|
/// a known e-ink device and persists the result. Subsequent launches use the
|
|
/// stored value so the user's explicit choice is always respected.
|
|
///
|
|
/// Copied from [EinkModeNotifier].
|
|
@ProviderFor(EinkModeNotifier)
|
|
final einkModeNotifierProvider =
|
|
AutoDisposeNotifierProvider<EinkModeNotifier, bool>.internal(
|
|
EinkModeNotifier.new,
|
|
name: r'einkModeNotifierProvider',
|
|
debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
|
|
? null
|
|
: _$einkModeNotifierHash,
|
|
dependencies: null,
|
|
allTransitiveDependencies: null,
|
|
);
|
|
|
|
typedef _$EinkModeNotifier = AutoDisposeNotifier<bool>;
|
|
// ignore_for_file: type=lint
|
|
// ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member, deprecated_member_use_from_same_package
|