global_view_model.g.dart 6.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223
  1. // GENERATED CODE - DO NOT MODIFY BY HAND
  2. part of 'global_view_model.dart';
  3. // **************************************************************************
  4. // RiverpodGenerator
  5. // **************************************************************************
  6. String _$deviceConnectStatusHash() =>
  7. r'1fcbebae924ddb1a7599d6e5fe62852d4e16824b';
  8. /// Copied from Dart SDK
  9. class _SystemHash {
  10. _SystemHash._();
  11. static int combine(int hash, int value) {
  12. // ignore: parameter_assignments
  13. hash = 0x1fffffff & (hash + value);
  14. // ignore: parameter_assignments
  15. hash = 0x1fffffff & (hash + ((0x0007ffff & hash) << 10));
  16. return hash ^ (hash >> 6);
  17. }
  18. static int finish(int hash) {
  19. // ignore: parameter_assignments
  20. hash = 0x1fffffff & (hash + ((0x03ffffff & hash) << 3));
  21. // ignore: parameter_assignments
  22. hash = hash ^ (hash >> 11);
  23. return 0x1fffffff & (hash + ((0x00003fff & hash) << 15));
  24. }
  25. }
  26. abstract class _$DeviceConnectStatus
  27. extends BuildlessAutoDisposeNotifier<bool> {
  28. late final MethodChannel videoChannel;
  29. bool build(
  30. MethodChannel videoChannel,
  31. );
  32. }
  33. ///连接状态
  34. ///
  35. /// Copied from [DeviceConnectStatus].
  36. @ProviderFor(DeviceConnectStatus)
  37. const deviceConnectStatusProvider = DeviceConnectStatusFamily();
  38. ///连接状态
  39. ///
  40. /// Copied from [DeviceConnectStatus].
  41. class DeviceConnectStatusFamily extends Family<bool> {
  42. ///连接状态
  43. ///
  44. /// Copied from [DeviceConnectStatus].
  45. const DeviceConnectStatusFamily();
  46. ///连接状态
  47. ///
  48. /// Copied from [DeviceConnectStatus].
  49. DeviceConnectStatusProvider call(
  50. MethodChannel videoChannel,
  51. ) {
  52. return DeviceConnectStatusProvider(
  53. videoChannel,
  54. );
  55. }
  56. @override
  57. DeviceConnectStatusProvider getProviderOverride(
  58. covariant DeviceConnectStatusProvider provider,
  59. ) {
  60. return call(
  61. provider.videoChannel,
  62. );
  63. }
  64. static const Iterable<ProviderOrFamily>? _dependencies = null;
  65. @override
  66. Iterable<ProviderOrFamily>? get dependencies => _dependencies;
  67. static const Iterable<ProviderOrFamily>? _allTransitiveDependencies = null;
  68. @override
  69. Iterable<ProviderOrFamily>? get allTransitiveDependencies =>
  70. _allTransitiveDependencies;
  71. @override
  72. String? get name => r'deviceConnectStatusProvider';
  73. }
  74. ///连接状态
  75. ///
  76. /// Copied from [DeviceConnectStatus].
  77. class DeviceConnectStatusProvider
  78. extends AutoDisposeNotifierProviderImpl<DeviceConnectStatus, bool> {
  79. ///连接状态
  80. ///
  81. /// Copied from [DeviceConnectStatus].
  82. DeviceConnectStatusProvider(
  83. MethodChannel videoChannel,
  84. ) : this._internal(
  85. () => DeviceConnectStatus()..videoChannel = videoChannel,
  86. from: deviceConnectStatusProvider,
  87. name: r'deviceConnectStatusProvider',
  88. debugGetCreateSourceHash:
  89. const bool.fromEnvironment('dart.vm.product')
  90. ? null
  91. : _$deviceConnectStatusHash,
  92. dependencies: DeviceConnectStatusFamily._dependencies,
  93. allTransitiveDependencies:
  94. DeviceConnectStatusFamily._allTransitiveDependencies,
  95. videoChannel: videoChannel,
  96. );
  97. DeviceConnectStatusProvider._internal(
  98. super._createNotifier, {
  99. required super.name,
  100. required super.dependencies,
  101. required super.allTransitiveDependencies,
  102. required super.debugGetCreateSourceHash,
  103. required super.from,
  104. required this.videoChannel,
  105. }) : super.internal();
  106. final MethodChannel videoChannel;
  107. @override
  108. bool runNotifierBuild(
  109. covariant DeviceConnectStatus notifier,
  110. ) {
  111. return notifier.build(
  112. videoChannel,
  113. );
  114. }
  115. @override
  116. Override overrideWith(DeviceConnectStatus Function() create) {
  117. return ProviderOverride(
  118. origin: this,
  119. override: DeviceConnectStatusProvider._internal(
  120. () => create()..videoChannel = videoChannel,
  121. from: from,
  122. name: null,
  123. dependencies: null,
  124. allTransitiveDependencies: null,
  125. debugGetCreateSourceHash: null,
  126. videoChannel: videoChannel,
  127. ),
  128. );
  129. }
  130. @override
  131. AutoDisposeNotifierProviderElement<DeviceConnectStatus, bool>
  132. createElement() {
  133. return _DeviceConnectStatusProviderElement(this);
  134. }
  135. @override
  136. bool operator ==(Object other) {
  137. return other is DeviceConnectStatusProvider &&
  138. other.videoChannel == videoChannel;
  139. }
  140. @override
  141. int get hashCode {
  142. var hash = _SystemHash.combine(0, runtimeType.hashCode);
  143. hash = _SystemHash.combine(hash, videoChannel.hashCode);
  144. return _SystemHash.finish(hash);
  145. }
  146. }
  147. mixin DeviceConnectStatusRef on AutoDisposeNotifierProviderRef<bool> {
  148. /// The parameter `videoChannel` of this provider.
  149. MethodChannel get videoChannel;
  150. }
  151. class _DeviceConnectStatusProviderElement
  152. extends AutoDisposeNotifierProviderElement<DeviceConnectStatus, bool>
  153. with DeviceConnectStatusRef {
  154. _DeviceConnectStatusProviderElement(super.provider);
  155. @override
  156. MethodChannel get videoChannel =>
  157. (origin as DeviceConnectStatusProvider).videoChannel;
  158. }
  159. String _$captchaHash() => r'5aa370277672fd39d550f0c121cb6f17d165401b';
  160. ///验证码
  161. ///
  162. /// Copied from [Captcha].
  163. @ProviderFor(Captcha)
  164. final captchaProvider = AutoDisposeNotifierProvider<Captcha, String>.internal(
  165. Captcha.new,
  166. name: r'captchaProvider',
  167. debugGetCreateSourceHash:
  168. const bool.fromEnvironment('dart.vm.product') ? null : _$captchaHash,
  169. dependencies: null,
  170. allTransitiveDependencies: null,
  171. );
  172. typedef _$Captcha = AutoDisposeNotifier<String>;
  173. String _$checkNewVersionHash() => r'55ae970747e0f222b9e32ec5bed320f742268302';
  174. /// See also [CheckNewVersion].
  175. @ProviderFor(CheckNewVersion)
  176. final checkNewVersionProvider =
  177. AutoDisposeNotifierProvider<CheckNewVersion, String>.internal(
  178. CheckNewVersion.new,
  179. name: r'checkNewVersionProvider',
  180. debugGetCreateSourceHash: const bool.fromEnvironment('dart.vm.product')
  181. ? null
  182. : _$checkNewVersionHash,
  183. dependencies: null,
  184. allTransitiveDependencies: null,
  185. );
  186. typedef _$CheckNewVersion = AutoDisposeNotifier<String>;
  187. // ignore_for_file: type=lint
  188. // ignore_for_file: subtype_of_sealed_class, invalid_use_of_internal_member, invalid_use_of_visible_for_testing_member