123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223 |
- // GENERATED CODE - DO NOT MODIFY BY HAND
- part of 'global_view_model.dart';
- // **************************************************************************
- // RiverpodGenerator
- // **************************************************************************
- String _$deviceConnectStatusHash() =>
- r'1fcbebae924ddb1a7599d6e5fe62852d4e16824b';
- /// Copied from Dart SDK
- class _SystemHash {
- _SystemHash._();
- static int combine(int hash, int value) {
- // ignore: parameter_assignments
- hash = 0x1fffffff & (hash + value);
- // ignore: parameter_assignments
- hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
- return hash ^ (hash >> 6);
- }
- static int finish(int hash) {
- // ignore: parameter_assignments
- hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
- // ignore: parameter_assignments
- hash = hash ^ (hash >> 11);
- return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
- }
- }
- abstract class _$DeviceConnectStatus
- extends BuildlessAutoDisposeNotifier<bool> {
- late final MethodChannel videoChannel;
- bool build(
- MethodChannel videoChannel,
- );
- }
- ///连接状态
- ///
- /// Copied from [DeviceConnectStatus].
- @ProviderFor(DeviceConnectStatus)
- const deviceConnectStatusProvider = DeviceConnectStatusFamily();
- ///连接状态
- ///
- /// Copied from [DeviceConnectStatus].
- class DeviceConnectStatusFamily extends Family<bool> {
- ///连接状态
- ///
- /// Copied from [DeviceConnectStatus].
- const DeviceConnectStatusFamily();
- ///连接状态
- ///
- /// Copied from [DeviceConnectStatus].
- DeviceConnectStatusProvider call(
- MethodChannel videoChannel,
- ) {
- return DeviceConnectStatusProvider(
- videoChannel,
- );
- }
- @override
- DeviceConnectStatusProvider getProviderOverride(
- covariant DeviceConnectStatusProvider provider,
- ) {
- return call(
- provider.videoChannel,
- );
- }
- static const Iterable<ProviderOrFamily>? _dependencies = null;
- @override
- Iterable<ProviderOrFamily>? get dependencies => _dependencies;
- static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
- @override
- Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
- _allTransitiveDependencies;
- @override
- String? get name => r'deviceConnectStatusProvider';
- }
- ///连接状态
- ///
- /// Copied from [DeviceConnectStatus].
- class DeviceConnectStatusProvider
- extends AutoDisposeNotifierProviderImpl<DeviceConnectStatus, bool> {
- ///连接状态
- ///
- /// Copied from [DeviceConnectStatus].
- DeviceConnectStatusProvider(
- MethodChannel videoChannel,
- ) : this._internal(
- () => DeviceConnectStatus()..videoChannel = videoChannel,
- from: deviceConnectStatusProvider,
- name: r'deviceConnectStatusProvider',
- debugGetCreateSourceHash:
- const bool.fromEnvironment('dart.vm.product')
- ? null
- : _$deviceConnectStatusHash,
- dependencies: DeviceConnectStatusFamily._dependencies,
- allTransitiveDependencies:
- DeviceConnectStatusFamily._allTransitiveDependencies,
- videoChannel: videoChannel,
- );
- DeviceConnectStatusProvider._internal(
- super._createNotifier, {
- required super.name,
- required super.dependencies,
- required super.allTransitiveDependencies,
- required super.debugGetCreateSourceHash,
- required super.from,
- required this.videoChannel,
- }) : super.internal();
- final MethodChannel videoChannel;
- @override
- bool runNotifierBuild(
- covariant DeviceConnectStatus notifier,
- ) {
- return notifier.build(
- videoChannel,
- );
- }
- @override
- Override overrideWith(DeviceConnectStatus Function() create) {
- return ProviderOverride(
- origin: this,
- override: DeviceConnectStatusProvider._internal(
- () => create()..videoChannel = videoChannel,
- from: from,
- name: null,
- dependencies: null,
- allTransitiveDependencies: null,
- debugGetCreateSourceHash: null,
- videoChannel: videoChannel,
- ),
- );
- }
- @override
- AutoDisposeNotifierProviderElement<DeviceConnectStatus, bool>
- createElement() {
- return _DeviceConnectStatusProviderElement(this);
- }
- @override
- bool operator ==(Object other) {
- return other is DeviceConnectStatusProvider &&
- other.videoChannel == videoChannel;
- }
- @override
- int get hashCode {
- var hash = _SystemHash.combine(0, runtimeType.hashCode);
- hash = _SystemHash.combine(hash, videoChannel.hashCode);
- return _SystemHash.finish(hash);
- }
- }
- mixin DeviceConnectStatusRef on AutoDisposeNotifierProviderRef<bool> {
- /// The parameter `videoChannel` of this provider.
- MethodChannel get videoChannel;
- }
- class _DeviceConnectStatusProviderElement
- extends AutoDisposeNotifierProviderElement<DeviceConnectStatus, bool>
- with DeviceConnectStatusRef {
- _DeviceConnectStatusProviderElement(super.provider);
- @override
- MethodChannel get videoChannel =>
- (origin as DeviceConnectStatusProvider).videoChannel;
- }
- String _$captchaHash() => r'5aa370277672fd39d550f0c121cb6f17d165401b';
- ///验证码
- ///
- /// Copied from [Captcha].
- @ProviderFor(Captcha)
- final captchaProvider = AutoDisposeNotifierProvider<Captcha, String>.internal(
- Captcha.new,
- name: r'captchaProvider',
- debugGetCreateSourceHash:
- const bool.fromEnvironment('dart.vm.product') ? null : _$captchaHash,
- dependencies: null,
- allTransitiveDependencies: null,
- );
- typedef _$Captcha = AutoDisposeNotifier<String>;
- String _$checkNewVersionHash() => r'55ae970747e0f222b9e32ec5bed320f742268302';
- /// See also [CheckNewVersion].
- @ProviderFor(CheckNewVersion)
- final checkNewVersionProvider =
- AutoDisposeNotifierProvider<CheckNewVersion, String>.internal(
- CheckNewVersion.new,
- name: r'checkNewVersionProvider',
- debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
- ? null
- : _$checkNewVersionHash,
- dependencies: null,
- allTransitiveDependencies: null,
- );
- typedef _$CheckNewVersion = AutoDisposeNotifier<String>;
- // ignore_for_file: type=lint
- // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member
|